Encode base64 in jQuery –
btoa() function is used for it.
For Example –
var str = ‘Hello’;
var encrypted_str = btoa (str);
alert( encrypted_str );
Output – SGVsbG8=
How to encode base64 in jQuery ?
Posted on Categories JQuery, JQuery - Problems and Solutions, Programming Language