Tuesday 9 May 2017

Encryption in Node JS and decryption in Java

Currently i have a requirement for Decryption of the Cookie which is encrypted in Node JS.

I Will be Putting the encryption Procedure followed in the NodeJs , Help me in Decrypting using Java Code.

   var algorithm = 'aes-256-ctr' ;
    var cipher = crypto.createCipher(algorithm, password);
    var crypted = cipher.update(text, 'utf8', 'hex');
    crypted += cipher.final('hex');

I have the key and Encrypted data. Can anybody help me in the Decryption using Java Code.



via Vasu Dev

No comments:

Post a Comment