Encrypts a plaintext string using AES-256-GCM.
The process is as follows:
secret
salt
The plaintext to encrypt. Must be a non-empty string.
The secret passphrase for encryption. Must be a non-empty string.
The URL-safe Base64 encoded ciphertext, which includes the salt, IV, and auth tag.
Error If text or secret is empty.
text
Error If the encryption or compression process fails.
Encrypts a plaintext string using AES-256-GCM.
The process is as follows:
secretandsaltusing scrypt.