diff --git a/src/com/belkast/soap/webService.java b/src/com/belkast/soap/webService.java index e30e6eb..aa3af3e 100644 --- a/src/com/belkast/soap/webService.java +++ b/src/com/belkast/soap/webService.java @@ -14,6 +14,7 @@ public class webService { static Boolean varDebug = false; static String varKey; + static String varSalt = "1zcHJvdG9ubWFpbC9icmlkZ2UtdjMvdXNlcnMvYnJpZGdlLXZhdWx0LWtleQl0gx"; public static void main(String... argv) throws Exception { @@ -50,6 +51,7 @@ public class webService { { String varToStore = secretProcessor.encode(secretProcessor.encrypt(varKey, varToEncrypt)); String varChecked = secretProcessor.decrypt(varKey, secretProcessor.decode(varToStore)); + System.out.println("Clear Text Password : " + varToEncrypt); System.out.println("Encryption Key : " + varKey); System.out.println("Encrypted / Encoded : " + varToStore); @@ -120,8 +122,8 @@ public class webService { } try { - byte[] varDecoded = secretProcessor.decode(varPasswordTemp); - varPassword = secretProcessor.decrypt(varKey, varDecoded); + varPassword = AES256.decrypt(varPasswordTemp, varKey, varSalt); + } catch (Exception e) { debugProcessor.writer(true, "The password could not be decrypted. Please check that the Encryption Key is correct!"); System.exit(0);