Based off by the hex color you put, this encrypting method will turn the hex into a secure key, meaning your message will be unique!
Hex color
Encryption
Enter message:
Encrypted output:
Decryption
Encrypted message:
Decrypted output:
How it works:
For first, you'd need to introduce an hex color in the "Hex color" input area (Example == #FFFFFF)
Encryption
What it does, it will turn the HEX into RGB (Yeah i know its weird but the content of the hex color will be used to randomize the hash after encryption)
Example: #FFFFFF FF > 256 (full rgb) FFFFFF == WHITE
#FFFFFF > INTO RGB → single key = R * 65536 + G * 256 + B
R = 255
G = 255
B = 255
key = 255*65536 + 255*256 + 255
key = 16,777,215
This is done with 24-bit to get as more unique encryptions as possible
After that, we convert each character on the non-encrypted message into unicode points.
Add the sumarized key to each character, after that we reduce the number so it fits the unicode range, wrapping it using modulo
Encrypted_value % 11114112
Then, turn the value into a normal character on the unicode
As for the decryption:
Encrypted character - Key + Unicode max range ) % Same unicode max range