encryption and decryption solution built for newbies to understand how it works.
A professional custom encryption system using character substitution with special symbols ./_-+=!~. Features optional master key encryption, salt-based security, and Unicode support.
Each character maps to unique 2-symbol combinations using 8 special characters.
Optional PBKDF2 key derivation with XOR encryption layer.
Handles any Unicode character with hex encoding fallback.
Cryptographically secure random salts prevent rainbow attacks.
Character Type | Example | Mapping |
---|---|---|
Lowercase | a, b, c | 'a': './' |
Uppercase | A, B, C | 'A': '-!' |
Numbers | 0, 1, 2 | '0': '~-' |
Special | Space, punctuation | ' ': '==' |
Unicode | Any other char | 'β¬': '[U20AC]' |
This system provides good obfuscation but is not cryptographically secure for highly sensitive data. Consider combining with established encryption standards like AES for maximum security.
Method | Parameters | Returns |
---|---|---|
encrypt(plaintext) | str: text to encrypt | str: encrypted text |
decrypt(ciphertext) | str: text to decrypt | str: original plaintext |
get_cipher_info() | None | dict: system info |
High-level interface with error handling.
Time Complexity: O(n) for both encryption and decryption
Memory Usage: ~2-3x input size during processing
Optimization: Reuse cipher instances for better performance