Now using new encryption routines

Changed to use the new encryption routines
This commit is contained in:
Keith Armstrong 2024-12-31 08:49:46 -05:00
parent 9de9f501ef
commit 2df3aa348a

View File

@ -49,8 +49,8 @@ public class webService {
if (varToEncrypt != null && !varToEncrypt.isEmpty())
{
String varToStore = secretProcessor.encode(secretProcessor.encrypt(varKey, varToEncrypt));
String varChecked = secretProcessor.decrypt(varKey, secretProcessor.decode(varToStore));
String varToStore = salter.encrypt(varToEncrypt, varKey, varSalt);
String varChecked = salter.decrypt(varToStore, varKey, varSalt);
System.out.println("Clear Text Password : " + varToEncrypt);
System.out.println("Encryption Key : " + varKey);
@ -122,7 +122,7 @@ public class webService {
}
try {
varPassword = AES256.decrypt(varPasswordTemp, varKey, varSalt);
varPassword = salter.decrypt(varPasswordTemp, varKey, varSalt);
} catch (Exception e) {
debugProcessor.writer(true, "The password could not be decrypted. Please check that the Encryption Key is correct!");