Encrypt a file.
Public Function cipherFileEncrypt ( _ szFileOut As String, _ szFileIn As String, _ lpKey() As Byte, _ lpIV() As Byte, _ szAlgModePad As String, _ Optional nOptions As Long = 0 _ ) As Long
"aes128/cbc/pkcs5"
Alg: aes128|aes192|aes256|tdea|3des|desede3 Mode: ecb|cbc|ofb|cfb|ctr|gcm Pad: pkcs5|nopad|oneandzeroes|ansix923|w3c
PKI_IV_PREFIX
to prepend the IV before the ciphertext in the output
(ignored for ECB mode).fileOut
and fileIn
must not be the same.
GCM mode is only available with AES. The IV must be exactly 12 bytes long for GCM.