CryptEncryptBase64
Encrypts data with the specified key and returns text in Base64 format.
Format
CryptEncryptBase64 ( data ; key )
Parameters
data
- any text expression or field to encrypt.
key
- any text expression or field as the key to encrypt data
with.
Data type returned
text
Originated in version
16.0
Description
Use the CryptEncryptBase64 and CryptDecryptBase64 functions to encrypt and decrypt field data.
This function works the same as the CryptEncrypt function, except that it returns encrypted data as Base64-encoded text following the RFC 4648 standard.
Notes
- Encoding binary data as Base64-encoded text increases its size by one third.
Example 1
Returns encrypted data as text that can begin with YdJuEZueje5ybjg903wuVFYAOLy.
CryptEncryptBase64 ( "This needs protection" ; "My secret password" )