I need to encrypt my password using base 64. How can i do it in javascript?
-
3Sivajith, Base-64 is an encoding, not encryption, scheme. It does not protect your passwords in any way.Michael Petrotta– Michael Petrotta2013-04-06 05:39:00 +00:00Commented Apr 6, 2013 at 5:39
-
stackoverflow.com/questions/4121629/… if you are looking for encryption and not encodingbtevfik– btevfik2013-04-06 05:45:50 +00:00Commented Apr 6, 2013 at 5:45
Add a comment
|
1 Answer
base64 is a method to encode data and not an encryption technique. If that is still the approach you want to take then here is a JavaScript library that will work: https://github.com/mshang/base64-js
There is also a built in method in Mozilla and web kit browsers called btoa():