We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello everyone,
Im facing an issue while decrypting an "encryptedMessage" that occurs randomly using the following method :
METHOD :
let decryptAES = function (encryptedMessage, key) { const decipher = forge.cipher.createDecipher('AES-ECB', forge.util.hexToBytes(key)); decipher.start(); decipher.update(forge.util.createBuffer(encryptedMessage)); decipher.finish(); return decipher.output.toHex(); };
Valid decryption : let ktaDecrypted = decryptAES(forge.util.decode64('rplbhs67wEklyMANzB/I5Q=='), '61A402A2AD37BC383B1640BF40CB34E6'); Result : ktaDecrypted : 'd1f47b35ac2bce1ead510a73bf84a0e2'
let ktaDecrypted = decryptAES(forge.util.decode64('rplbhs67wEklyMANzB/I5Q=='), '61A402A2AD37BC383B1640BF40CB34E6');
Unvalid decryption : let ktaDecrypted = decryptAES(forge.util.decode64('Ky1HCLxXFKyY7O3Kcsq0OA=='), 'D610315807C4CEB945C7C10EE952D5B9'); Result : ktaDecrypted : ''
let ktaDecrypted = decryptAES(forge.util.decode64('Ky1HCLxXFKyY7O3Kcsq0OA=='), 'D610315807C4CEB945C7C10EE952D5B9');
in this second case, i get an empty string as an outpu
Can anyone help with that ?
Note: on the other hand, the IOS Team could decrypt this correctly using the same informations.
The text was updated successfully, but these errors were encountered:
I encountered the same issue. It does work, with mode ECB/No Padding
https://gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z0-9%2B/%3D',true,false)AES_Decrypt(%7B'option':'Hex','string':'D610315807C4CEB945C7C10EE952D5B9'%7D,%7B'option':'Hex','string':'0000000000000000000000000000000'%7D,'ECB/NoPadding','Hex','Hex',%7B'option':'Hex','string':''%7D,%7B'option':'Hex','string':''%7D)&input=S3kxSENMeFhGS3lZN08zS2NzcTBPQT09
Sorry, something went wrong.
No branches or pull requests
Hello everyone,
Im facing an issue while decrypting an "encryptedMessage" that occurs randomly using the following method :
METHOD :
Valid decryption :
let ktaDecrypted = decryptAES(forge.util.decode64('rplbhs67wEklyMANzB/I5Q=='), '61A402A2AD37BC383B1640BF40CB34E6');
Result : ktaDecrypted : 'd1f47b35ac2bce1ead510a73bf84a0e2'
Unvalid decryption :
let ktaDecrypted = decryptAES(forge.util.decode64('Ky1HCLxXFKyY7O3Kcsq0OA=='), 'D610315807C4CEB945C7C10EE952D5B9');
Result : ktaDecrypted : ''
in this second case, i get an empty string as an outpu
Can anyone help with that ?
Note: on the other hand, the IOS Team could decrypt this correctly using the same informations.
The text was updated successfully, but these errors were encountered: