Linux, c++, 3 scripts for file encryption on Salsa20/HC-256/SOSEMANUK

Job ID: 35398655

Budget: $250 – $750 USD

Need to write 3 scripts in c++. The scripts must have two functions each, the first to encrypt the file, the second to decrypt the file. Well, each file should be approximated as follows:

int main() {
encrypt("test.txt", "test.txt.encrypt","(key)");
decrypt("test.txt.encrypt", "test.txt","(key)");
}


File encryption must be implemented using the following libraries:

Salsa20 https://www.ecrypt.eu.org/stream/salsa20pf.html
HC-256 https://www.ecrypt.eu.org/stream/hcp3.html
SOSEMANUK https://www.ecrypt.eu.org/stream/sosemanukpf.html

The source code there is written in C, but it can be plugged into c++ and compiled into one file.

It also needs optimization of RAM, and the correct read/write file, so that the memory is freed after the encryption of the file. Write code and test it strictly on Linux, because RAM on windows and linux in c++ is optimized differently.

Also for clarity, there is an example of file encryption using https://www.ecrypt.eu.org/stream/sosemanukpf.html
An example can be found in the file sosemanuk.tar.gz
*This is just an example, you don't have to do 1v1!

Tests should be run on large files ranging in size from 1GiB to 10Gib, for simplicity you can use the command fallocate -l 1G test.txt to create files of the desired size.

The price for the project is not more than the specified price in the announcement!

Deadlines of up to 4 days.

In fact, if you know what you're dealing with, it's easy to connect 3 files with encryption and decryption functions and write functions to read and write the file.