encrypt: function(str,urlsafe,encoding) {
var cipher = crypto.createCipher('rc4','abcde');
var enc = encoding || 'utf-8';
return urlSafeEnc(Buffer.concat([ cipher.update(str,enc),cipher.final() ]).toString('base64'),urlsafe);
},
I need corresponding code in java.I dont know where to define enc(i.e utf-8) ,string type as "base64" and urlsafe parameters in corresponding java code.
Searching library for same taking time.
Tried code from below link but it didnt help.
http://esus.com/encryptingdecrypting-using-rc4/
via Anshul
No comments:
Post a Comment