A set of ciphers
void xor_encrypt_decrypt(void *key, size_t key_length, void *data, size_t data_length)
<rdi> <rsi> <rdx> <rcx>
An XOR cipher in assembly language.
In cryptography, the simple XOR cipher is a type of additive
cipher, an encryption algorithm that operates, in binary,
according to the principles:
0 1 1
0 1 0
_____
=> 0 0 1
Encryption and decryption is done by the same algorithm.
void xor_with_additive_cipher(
void *key, size_t key_length, void *data, size_t data_length)
<rdi> <rsi> <rdx> <rcx>
We added an additive cipher to the previous XOR cipher:
- encyption:
1. <byte> + <additive cipher value>
2. XOR <data-byte> <key-byte>
- decryption:
1. XOR <data-byte> <key-byte>
2. <byte> - <additive cipher value>
A numbered alphabet cipher in python.
- During encryption, it takes command-line arguments, convert each argument to a series of numbers representing the position of each character in the alphabet, and prints the results.
- The reverse process is done during decryption.
It can only decode numbers separated by spaces. * Handled alphabetical characters include ranges: a-z, Ç-Ü, á-Ñ. * Handles punctuations.
// Usage
python3 nbralpha [option] [source],...
// option
-s: spaces between numbers in encryption mode's output string.
-v: verbose mode. Useful to desactivate when reusing the
output through pipes, etc.