Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maiori44/loket
Simple file encryptor (WIP)
https://github.com/maiori44/loket
encryption encryptor
Last synced: about 1 month ago
JSON representation
Simple file encryptor (WIP)
- Host: GitHub
- URL: https://github.com/maiori44/loket
- Owner: Maiori44
- License: mit
- Created: 2022-08-06T09:26:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T10:29:05.000Z (about 2 years ago)
- Last Synced: 2023-03-06T05:32:18.988Z (over 1 year ago)
- Topics: encryption, encryptor
- Language: C
- Homepage:
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Loket is a very simple encryptor that only requires a key to work.
**NOTE: While the program is in version 1.0, it is not safe enough currently, and should be seen as a toy for learning, updates will be released to improve safety**
## How it works
Every character of the file is summed with a character of the key and the sum of all characters of the key, this sum is then also encrypted and stored in the output `*.lok` file.
If someone will try to decrypt the file using the wrong key, it will decrypt the sum incorrectly, and will not match the sum of the incorrect key and so the program will refuse to decrypt the file (which would have resulted in a corrupted file anyway).
Decrypting the sum correctly is also necessary to decrypt the rest of the file since, as stated previously, the sum is added to each character in the original file.
The sum stored in the file cannot be examined to obtain the correct key since it too is encrypted, thus only who already has the correct key can decrypt the sum correctly and with it the rest of the file.## How to compile (with GCC)
Run `build.sh` on Linux or `build.bat` on Windows.
To compile for Windows *on Linux*, run `build.sh -win`