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

Get URL Parameters Using Javascript

PHP 5.4 beta1 released

How to get the number of parameter with their name of a defined function