Ssl encrypt
ssl_encrypt¶
Encrypt a file using AES-256-CBC with base64 encoding and PBKDF2 key derivation. openssl will prompt for a passphrase interactively. Decrypt with ssl_decrypt.
Arguments¶
- $1 (string): Input file to encrypt
- $2 (string): Output encrypted file (default: input path with .crypted suffix)
Exit codes¶
- 0: Success
- 1: No input file provided