Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/der-fruhling/xor-random-encrypter
Generates 32 random longs (by default) and uses them to encrypt data.
https://github.com/der-fruhling/xor-random-encrypter
Last synced: about 21 hours ago
JSON representation
Generates 32 random longs (by default) and uses them to encrypt data.
- Host: GitHub
- URL: https://github.com/der-fruhling/xor-random-encrypter
- Owner: der-fruhling
- Created: 2019-09-25T17:38:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T00:07:11.000Z (about 5 years ago)
- Last Synced: 2023-11-10T22:28:16.783Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 651 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# xor-random-encrypter
![Build image here](https://api.travis-ci.com/LiamCoal/xor-random-encrypter.svg?branch=master)
This was the result of me trying to build an Archiver, but getting distracted with the random function and xor.
It was fun to make anyways.## What this does
First, it generates 32 random long ints. Then it uses those long ints (keys) to encrypt the input data.
The file structure is:KEYCOUNT * (8 on 64bit, 4 on 32bit, not compatible) bytes (keys)
??? bytes (encrypted data)## How to build it
### First build
Yes, these are different (thanks CLion)
```shell script
cmake -S . -B cmake-build-debug
cmake --build ./cmake-build-debug --target xorenc -- -j 2
```### After first build
```shell script
cmake --build ./cmake-build-debug --target xorenc -- -j 2
```## Plans (maybe)
_No plans right now, but feel free to suggest something_
## Done Plans
- [x] Key extractor!
- [x] Option to increase number of keys!