src/test/java/nl/uva/qcdis/sdia/commons/utils/ConverterTest.java
/**
     * Test of decryptString method, of class Converter.
     * @throws java.lang.Exception
     */
Test of decryptString method, of class Converter.
Test of decryptString method of class Converter .
@Test
    public void testEncryptDecryptString() throws Exception {
        System.out.println("decryptString");
        String contents = "this is very important information";
        String secret = "2vSfzOCCIj6__YYWiJDaY1n0CcwUCsPIDJVTkILDhc93JgYrYhUrqSAFNDdnB9XlwJgqEzLbxFU_YZ2PBwKX2Q==";
        String expResult = contents;
        String enc = Converter.encryptString(contents, secret);
        System.out.println("Encrypted String: " + enc);
        String result = Converter.decryptString(enc, secret);
        assertEquals(expResult, result);
    }
@ Test public void testEncryptDecryptString ( ) throws Exception { System . out . println ( "decryptString" ) ; String contents = "this is very important information" ; String secret = "2vSfzOCCIj6__YYWiJDaY1n0CcwUCsPIDJVTkILDhc93JgYrYhUrqSAFNDdnB9XlwJgqEzLbxFU_YZ2PBwKX2Q==" ; String expResult = contents ; String enc = Converter . encryptString ( contents , secret ) ; System . out . println ( "Encrypted String: " + enc ) ; String result = Converter . decryptString ( enc , secret ) ; assertEquals ( expResult , result ) ; }
Test of decryptString method, of class Converter.
Test of decryptString method of class Converter .
//Key.generateKey().serialise();