diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..9f2c996
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,20 @@
+Copyright 2015-2023 SendSafely Inc.
+
+The purpose of this NOTICE.txt file is to contain notices that are
+required by the copyright owners of the incorporated third party components
+noted and the respective licenses.
+Some of the accompanying products have an attribution requirement
+and are set forth below. Other accompanying products do not require
+attribution, so are not listed. See also the LICENSE.txt file.
+
+
+Apache Commons IO
+Copyright 2002-2022 The Apache Software Foundation
+This product includes software developed at
+The Apache Software Foundation (https://www.apache.org/).
+
+
+Google Gson
+Copyright 2008-2011 Google Inc.
+This product includes software developed by
+Google Inc. (https://www.google.com/).
diff --git a/SampleApplication/lib/commons-io-2.13.0.jar b/SampleApplication/lib/commons-io-2.13.0.jar
new file mode 100644
index 0000000..eb316f4
Binary files /dev/null and b/SampleApplication/lib/commons-io-2.13.0.jar differ
diff --git a/SampleApplication/lib/gson-2.10.1.jar b/SampleApplication/lib/gson-2.10.1.jar
new file mode 100644
index 0000000..a88c5bd
Binary files /dev/null and b/SampleApplication/lib/gson-2.10.1.jar differ
diff --git a/SampleApplication/lib/sendsafely-java-api-3.1.8.jar b/SampleApplication/lib/sendsafely-java-api-3.1.8.jar
deleted file mode 100644
index fa2b1c1..0000000
Binary files a/SampleApplication/lib/sendsafely-java-api-3.1.8.jar and /dev/null differ
diff --git a/SampleApplication/lib/sendsafely-java-api-3.1.9.jar b/SampleApplication/lib/sendsafely-java-api-3.1.9.jar
new file mode 100644
index 0000000..d013432
Binary files /dev/null and b/SampleApplication/lib/sendsafely-java-api-3.1.9.jar differ
diff --git a/SampleApplication/pom.xml b/SampleApplication/pom.xml
index 9ded5b1..6e4bede 100644
--- a/SampleApplication/pom.xml
+++ b/SampleApplication/pom.xml
@@ -16,7 +16,7 @@
com.sendsafely
sendsafely-java-api
- 3.1.8
+ 3.1.9
diff --git a/SendSafelyAPI/README.md b/SendSafelyAPI/README.md
index df73299..7d3e530 100644
--- a/SendSafelyAPI/README.md
+++ b/SendSafelyAPI/README.md
@@ -6,7 +6,7 @@ Use the following dependency in your project to grab via Maven:
com.sendsafely
sendsafely-java-api
- 3.1.8
+ 3.1.9
```
diff --git a/SendSafelyAPI/lib/commons-io-2.13.0.jar b/SendSafelyAPI/lib/commons-io-2.13.0.jar
new file mode 100644
index 0000000..eb316f4
Binary files /dev/null and b/SendSafelyAPI/lib/commons-io-2.13.0.jar differ
diff --git a/SendSafelyAPI/lib/commons-io-2.7.jar b/SendSafelyAPI/lib/commons-io-2.7.jar
deleted file mode 100644
index 5889458..0000000
Binary files a/SendSafelyAPI/lib/commons-io-2.7.jar and /dev/null differ
diff --git a/SendSafelyAPI/lib/gson-2.10.1.jar b/SendSafelyAPI/lib/gson-2.10.1.jar
new file mode 100644
index 0000000..a88c5bd
Binary files /dev/null and b/SendSafelyAPI/lib/gson-2.10.1.jar differ
diff --git a/SendSafelyAPI/lib/gson-2.8.9.jar b/SendSafelyAPI/lib/gson-2.8.9.jar
deleted file mode 100644
index 3351867..0000000
Binary files a/SendSafelyAPI/lib/gson-2.8.9.jar and /dev/null differ
diff --git a/SendSafelyAPI/lib/sendsafely-java-api-3.1.8.jar b/SendSafelyAPI/lib/sendsafely-java-api-3.1.8.jar
deleted file mode 100644
index fa2b1c1..0000000
Binary files a/SendSafelyAPI/lib/sendsafely-java-api-3.1.8.jar and /dev/null differ
diff --git a/SendSafelyAPI/lib/sendsafely-java-api-3.1.9.jar b/SendSafelyAPI/lib/sendsafely-java-api-3.1.9.jar
new file mode 100644
index 0000000..d013432
Binary files /dev/null and b/SendSafelyAPI/lib/sendsafely-java-api-3.1.9.jar differ
diff --git a/SendSafelyAPI/pom.xml b/SendSafelyAPI/pom.xml
index a95cdb7..881feac 100644
--- a/SendSafelyAPI/pom.xml
+++ b/SendSafelyAPI/pom.xml
@@ -6,7 +6,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
com.sendsafely
sendsafely-java-api
- 3.1.8
+ 3.1.9
jar
SendSafely Java Client API
@@ -15,8 +15,8 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
- The Apache License, Version 2.0
- http://www.apache.org/licenses/LICENSE-2.0.txt
+ Apache License, Version 2.0
+ https://www.apache.org/licenses/LICENSE-2.0.txt
@@ -54,12 +54,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
com.google.code.gson
gson
- 2.8.9
+ 2.10.1
commons-io
commons-io
- 2.7
+ 2.13.0
org.bouncycastle
diff --git a/SendSafelyAPI/src/com/sendsafely/utils/CryptoUtil.java b/SendSafelyAPI/src/com/sendsafely/utils/CryptoUtil.java
index 6d4c8b9..a13001d 100644
--- a/SendSafelyAPI/src/com/sendsafely/utils/CryptoUtil.java
+++ b/SendSafelyAPI/src/com/sendsafely/utils/CryptoUtil.java
@@ -347,6 +347,7 @@ public static String encryptKeycode(String publicKeyStr, String keycode) throws
// create an encrypted payload and set the public key on the data generator
BcPGPDataEncryptorBuilder bcpgpdeb = new BcPGPDataEncryptorBuilder(PGPEncryptedData.AES_256);
+ bcpgpdeb.setWithIntegrityPacket(true);
PGPEncryptedDataGenerator encryptGen = new PGPEncryptedDataGenerator(bcpgpdeb);
encryptGen.addMethod(new BcPublicKeyKeyEncryptionMethodGenerator(key));
diff --git a/SendSafelyAPI/target/sendsafely-java-api-3.1.9-javadoc.jar b/SendSafelyAPI/target/sendsafely-java-api-3.1.9-javadoc.jar
new file mode 100644
index 0000000..6ebb2e5
Binary files /dev/null and b/SendSafelyAPI/target/sendsafely-java-api-3.1.9-javadoc.jar differ
diff --git a/SendSafelyAPI/target/sendsafely-java-api-3.1.9-sources.jar b/SendSafelyAPI/target/sendsafely-java-api-3.1.9-sources.jar
new file mode 100644
index 0000000..74b43b5
Binary files /dev/null and b/SendSafelyAPI/target/sendsafely-java-api-3.1.9-sources.jar differ
diff --git a/SendSafelyAPI/target/sendsafely-java-api-3.1.9.jar b/SendSafelyAPI/target/sendsafely-java-api-3.1.9.jar
new file mode 100644
index 0000000..d013432
Binary files /dev/null and b/SendSafelyAPI/target/sendsafely-java-api-3.1.9.jar differ