An open API service indexing awesome lists of open source software.

https://github.com/farinap5/xor-cipher

Simple encoding for files and messages
https://github.com/farinap5/xor-cipher

Last synced: about 2 months ago
JSON representation

Simple encoding for files and messages

Awesome Lists containing this project

README

        

XOR Cipher


Simple encoding for files and messages

---
Do not use in environments that would require secure encryption!

```
Simple explanation of how exclusive OR works.

LOGIC:
eXclusive OR OR
INPUT|OUTPUT INPUT|OUTPUT
-----|------ -----|------
A B| XOR A B| OR
0 0| 0 0 0| 0
0 1| 1 0 1| 1
1 0| 1 1 0| 1
1 1| 0 1 1| 1

ENCODE: DECODE:
abc - 01100001 01100010 01100011 %%% - 00001010 00000111 00011010
key - 01101011 01100101 01111001 key - 01101011 01100101 01111001
-------- -------- -------- -------- -------- --------
%%% - 00001010 00000111 00011010 abc - 01100001 01100010 01100011

%%% = any sequence of bytes.
```