removed devsec key

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/common-encryption@102088 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Roberto Cirillo 2014-12-15 15:45:41 +00:00
parent 556249a8f1
commit 14e54eed60
2 changed files with 15 additions and 3 deletions

View File

@ -8,7 +8,7 @@
</parent>
<groupId>org.gcube.core</groupId>
<artifactId>common-encryption</artifactId>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.2-SNAPSHOT</version>
<name>EncryptionLibrary</name>
<description>A collection of Encryption utilities</description>
<scm>

View File

@ -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");
}
}
}