base64Encode

This topic describes the syntax and usage of the base64Encode function in Zoho Creator .

Description

The base64Encode encryption task encrypts given text to base64 encoding scheme. This task serves its purpose best for confidential text such as account credentials.

Syntax

baseEncoded = zoho.encryption.base64Encode(<username:password>);

The base64Encode function syntax has the following arguments.

Text to be encoded - Required. The text to be encoded, for example, "username:password"

Example

Following is an example of the usability of base64Encode function.

baseEncoded = zoho.encryption.base64Encode("john@zillum.com:john@1");

Response returned

Returns the encoded text

YXlpc2hhLnNoYWphaGFuQHpvaG9jb3JwLmNvbTpheWlzaGFAMQ==