0

I need to encrypt my password using base 64. How can i do it in javascript?

2
  • 3
    Sivajith, Base-64 is an encoding, not encryption, scheme. It does not protect your passwords in any way. Commented Apr 6, 2013 at 5:39
  • stackoverflow.com/questions/4121629/… if you are looking for encryption and not encoding Commented Apr 6, 2013 at 5:45

1 Answer 1

1

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():

https://developer.mozilla.org/en-US/docs/DOM/window.btoa

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.