jQuery.fromBASE64()
Categories: Utilities
jQuery.fromBASE64( string, [ traditional ] )Returns: Object
Plugin: jQuery.base64
Description: Decrypt a base64 string.
-
jQuery.fromBASE64( string, [ traditional ] )
version added: 1.0string A string to decrypt
traditional A boolean indicating whether to use the traditional mode else convert from json after encrypt.
The jQuery.fromBASE64()
method decrypts strings from base64,
it converts the object from json string after encrypt base64.
-
Decrypt string from base64 with json convert.
Code:
$.fromBASE64( 'IkxvcmVtIGlwc3VtIg==' );
Results:
Lorem ipsum
-
Decrypt string from base64 without json convert.
Code:
$.fromBASE64( 'TG9yZW0gaXBzdW0=', true );
Results:
Lorem ipsum
jQuery.fromBASE64( string, [ traditional ] )Returns: Object
Plugin: jQuery.base64.fix
Description: Decrypt a base64 string.
-
jQuery.fromBASE64( string, [ traditional ] )
version added: 1.3string A string to decrypt
traditional A boolean indicating whether to use the traditional mode else convert from json after encrypt.
The jQuery.fromBASE64()
method decrypts strings from base64,
it converts the object from json string after encrypt base64.
The jQuery.base64.fix plugin is specially built, for browsers which don't support native base64 methods.