aes_encrypt
Encrypt string with AES-256-GCM using passphrase (PBKDF2).
aes_encrypt(
plaintext,
passphrase
) -> STRING
Encrypt string with AES-256-GCM using passphrase (PBKDF2).
Syntaxe
var enc = aes_encrypt("secret data", "my password");
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
plaintext | yes | - | String to encrypt | |
passphrase | yes | - | Password for key derivation |