ep.base64Decode()
Categories: Utilities
ep.base64Decode( string, [ noJSON ] )
Plugin: ep.base64
Description: Decrypt a base64 string.
-
ep.base64Decode( string, [ noJSON ] )
version added: 6.11.0string A string to decrypt
noJSON A boolean indicating whether to disable convert from json after encrypt.
The ep.base64Decode()
method decrypts strings from base64,
it converts the object from json string after encrypt base64.
-
Decrypt string from base64 with json convert.
Code:
ep.base64Decode( 'IkxvcmVtIGlwc3VtIg==' );
Results:
Lorem ipsum
-
Decrypt string from base64 without json convert.
Code:
ep.base64Decode( 'TG9yZW0gaXBzdW0=', true );
Results:
Lorem ipsum