aes256_encrypt_f()

Encrypts the contents of a file using AES-256 encryption with a provided key, and saves the encrypted data to a new file.

Syntax

aes256_encrypt_f({key}, {input_file}, {output_file})

Parameters

Parameter Type Description Comment
key String The encryption key to be used for AES-256 encryption.
input_file String The path of the file to be encrypted.
output_file String The path where the encrypted file will be saved.

Return Value

Examples

Encrypt the file “data.txt” with the key “mysecretkey” and save the encrypted file as “data_encrypted.txt”

aes256_encrypt_f("mysecretkey", "data.txt", "data_encrypted.txt"); // returns status based on success or failure

See also

aes256_encrypt
aes256_encrypt_f
aes256_decrypt
aes256_decrypt_f