This set of PowerShell scripts allows you to easily encrypt and decrypt files using the AES (Advanced Encryption Standard) algorithm. You can use these scripts to secure sensitive data by encrypting it and later decrypting it when needed.
Before using these scripts, make sure you have PowerShell installed on your system.
This script is used to encrypt a file using AES encryption and save the encrypted content to a new file with a ".aes" extension.
plainTextFile
(mandatory): The path to the file you want to encrypt.
Encrypt-AES "path/to/the/file"
This script is used to decrypt a previously encrypted file and recover the original content.
encryptedFilePath
(mandatory): The path to the encrypted file you want to decrypt.
Decrypt-AES "path/to/encrypted/file.aes"
Here's a simple example of how to use these scripts to encrypt and then decrypt a file:
-
Encrypt a file:
Encrypt-AES "path/to/the/file"
This will create an encrypted file with a ".aes" extension.
-
Decrypt the encrypted file:
Decrypt-AES "path/to/encrypted/file.aes"
This will decrypt the file and recover the original content.