Skip to content

Powershell class object used for different types of encryption and decryption purposes.

Notifications You must be signed in to change notification settings

AfanasievAA/UniCryptor2

Repository files navigation

UniCryptor2

Powershell class object used for different types of encryption and decryption purposes. This class is used in my work projects. Just wanted to share for anyone searching for this kind of POWERSHELL code.

To be used in your powershell projects to encrypt and decrypt following instances:

  1. Strings using RSA, AES, or RSA+AES encryption algorithms (in case of very long strings)
  2. Files using RSA+AES encryption algorithm. So you can encrypt a file using someone's open certificate and private key will be needed to decrypt one.
  3. Folders with files using RSA+AES encryption algorithm. Same as files but encrypts or decrypts all files in folder.
  4. Create 7Z archives using RSA encryption algorithm (Generates a long password and encrypts it using RSA encryption). So, you can create archives using someone's open certificate and send them to a person. Private key is needed to extract files.
  5. Create 7Z archives of files with Archive attribute set (for backup purposes) and (optionally) reset that attribute after successful archiving. So you can create secure backup files jobs. Files will be packed into 7Z archives using open certificate. After that, they can be stored anywhere safely. You will need a private key to decrypt those archives.

SevenZipSharp and 7z64.dll libraries required for this script to work properly. Included in BIN.ZIP archive, extract them to BIN folder. Or you can always use your own DLLs.

Also, I've included number of examples in PS1 files. Feel free to contract me with your questions, suggestions.

About

Powershell class object used for different types of encryption and decryption purposes.

Resources

Stars

Watchers

Forks

Packages

No packages published