base64encode()
Table of Contents
Overview
The base64encode() function takes a text as an argument, and returns it after encoding it to base64 encoding scheme. This task serves its purpose best for confidential text such as account credentials.
Return Type
- Text
Syntax
<variable> = zoho.encryption.base64Encode( <string> );
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | TEXT |
<string> | The string to be encoded. Except TEXT, all other data types will return null. | TEXT |
Examples
baseEncoded = zoho.encryption.base64Encode("john@zillum.com:john@1");
// returns YXlpc2hhLnNoYWphaGFuQHpvaG9jb3JwLmNvbTpheWlzaGFAMQ==