aes256_decrypt_f()

Decrypts an AES-256 encrypted file using the provided key and saves the decrypted content to another file.

Syntax

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

Parameters

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

Return Value

Examples

Decrypt a file “encryptedFile.txt” using the key “mysecretkey” and save it as “decryptedFile.txt”

aes256_decrypt_f("mysecretkey", "encryptedFile.txt", "decryptedFile.txt"); // returns success/failure

See also

aes256_encrypt
aes256_encrypt_f
aes256_decrypt
aes256_decrypt_f