v1.1.2
Help me to encrypt bigger files
See the sections below for all the details:
Help
The help output is now better generated and also shows a short description of each subcommand.
Encryption
Since Vault could only encrypt files the size of the asymmetric key, I had to extend the stringcrypt component.
Since stringcrypt was impractical and stupidly designed by me, I removed it and developed a completely new component called 'cryption' which contains all the important tools for byte array encryption and decryption using AES, X508 and RSA.
The new X509AES256 encryption functions generate a random key of the largest possible size (depending on how much the public key can encrypt) and use it to securely encrypt the payload. The RSA public key is then used to encrypt this key, and the encrypted key and encrypted payload are returned together.
SafeWriteFileBytes
The new stringfs asset function SafeWriteFileBytes has been added, which allows byte arrays to be safely written to files.
By safe we mean that it first writes to a .tmp_ file and then moves the file to the correct destination.
Even though the focus of stringfs is to edit the file system with strings and not with byte arrays, it is still a good addition to the SafeWriteFile function (which uses strings).
Tests
More unit tests have been added to vault.
Readme
Checkout the readme as official docs and leave a star on the repo.
Contact
"Checkout my github profile" ~ NobleMajo