Sometimes when we transfer sensitive data, we need protection on transferring.
File Encryption on Windows
Best way to encrypt file on Windows is to use Invoke-AESEncryption.ps1:
We would have to transfer the above to the target system.
Once it is transferred, let’s import it:
Now we can use Invoke-AESEncryption to encrypt files.
Encrypted files will have .aes extension.
File Encryption on Linux
We can use OpenSSL.
Let’s try encrypting /etc/passwd:
We can decrypt as such: