Skip to content

femrawr/rust-crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-crypt

A simple file protector made in rust that uses the kuznyechik encryption algorithm.
This should NOT be used to encrypt any important data as it uses the CTR cipher mode and has no checks. If you use the wrong key for decryption, the original data will probably be lost forever.

Arguments

The arguments that can be used to run the encrypter/decrypter with.

Argument Description
/verbose If it should print out the files it has encrypted/decrypted.
/master The master key for the encryption/decryption.
/folder The path to the folder whose contents will be encrypted/decrypted.

example:

.\decrypter.exe /verbose /master themasterkeuy /folder "C:\Users\user\Desktop\test folder"

Showcase

https://www.youtube.com/watch?v=1HPKXYrCBqQ

Technical Info

Uses Kuznyechik for encryption/decryption and Streebog512 for hashing.

Loops through the folder.
Generates a key for a file (100 characters).
Generates the suffix for the file (10 characters).
Derives the full key (file key + suffix + master key).
Reads the contents of the file and encrypts it.
Creates a new file with the suffix and writes the encrypted data.
Deletes the original file (blanks it first).

About

A simple file protector made in rust that uses the kuznyechik encryption algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages