Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  27] [ 6]  / answers: 1 / hits: 26616  / 12 Years ago, tue, january 22, 2013, 12:00:00

I want to send information between my client and NodeJS server. I need a simple way of encrypting messages from the client.



I've tried:
http://javascript.about.com/library/blencrypt.htm



but I need something simpler


More From » encryption

 Answers
26

Have you tried http://crypto.stanford.edu/sjcl/ ?



Very simple to use,



var sensitiveInfo = yodawgpasswords;
var encryptedInfo = sjcl.encrypt(password, sensitiveInfo);
var decryptedInfo = sjcl.decrypt(password, encryptedInfo);

[#80720] Sunday, January 20, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jarod

Total Points: 62
Total Questions: 111
Total Answers: 83

Location: Saint Vincent and the Grenadines
Member since Sat, Sep 11, 2021
3 Years ago
jarod questions
;