base64 encode using javascript

We can encode any string to a encoded data (using base-64 encoding) string.

The btoa() method of window object used to to a encoded data (using base-64 encoding) string.


Example :



window.btoa('Hello World !!!');

Output : SGVsbG8gV29ybGQgISEh

Use Facebook to Comment on this Post


Comments

Popular posts from this blog

How to check browser cookie enabled with php and javascript

cookie and subdomains

Output buffering in php