diff --git a/pom.xml b/pom.xml
index 41bfbd1..a9e42ce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
org.gcube.core
common-encryption
- 1.0.1-SNAPSHOT
+ 1.0.2-SNAPSHOT
EncryptionLibrary
A collection of Encryption utilities
diff --git a/src/test/java/org/gcube/common/encryption/StringEncrypterTest.java b/src/test/java/org/gcube/common/encryption/StringEncrypterTest.java
index 31fc4a1..26eb0bd 100644
--- a/src/test/java/org/gcube/common/encryption/StringEncrypterTest.java
+++ b/src/test/java/org/gcube/common/encryption/StringEncrypterTest.java
@@ -13,6 +13,7 @@ public class StringEncrypterTest {
static java.security.Key key;
static String toEnc = "String to encrypt";
+ static String toDec="a7XltR+sRVbF53/iOgwHuw==";//"wW9T5/k5VaLdTdc3WlPbWw==";
static String encString;
@BeforeClass
@@ -25,7 +26,7 @@ public class StringEncrypterTest {
public static void tearDownAfterClass() throws Exception {
}
- @Test
+// @Test
public final void testEncryptDecrypt() {
try {
System.out.println("---- STRING ENCRYPTION ----");
@@ -46,5 +47,16 @@ public class StringEncrypterTest {
}
}
-
+// @Test
+ public final void testDecrypt(){
+ try {
+ System.out.println("---- STRING DECRYPTION ----");
+ System.out.println("String to decrypt " + encString);
+ System.out.println("Decrypted string " + StringEncrypter.getEncrypter().decrypt(toDec,key));
+ } catch (Exception e) {
+ e.printStackTrace();
+ fail("failed to decrypt");
+ }
+ }
+
}