Encrypt Text using emojis!


Keywords
encryption, emoji, cipher, cryptography, cryptmoji, caesar-cipher, encryption-decryption, python, python-library, python3
License
MIT
Install
pip install cryptmoji==2.1.2

Documentation

πŸ₯· Cryptmoji

A simple emoji-based encryption-decryption library.

Downloads


πŸ“₯ Installation

You can use the pip package manager to install the library.

pip install cryptmoji

or use poetry:

poetry add cryptmoji

Check the Documentation

πŸ“ Usage

from cryptmoji import encrypt, decrypt

text = "Hello, world!"
key = "random_key" # makes the encryption stronger (optional)

# The encrypt and decrypt functions return the value
decrypted = decrypt(encrypted, key=key)
print(decrypted)
# 'πŸŽ½πŸ‰πŸ­πŸ£πŸ΄πŸŽπŸ΅πŸ€πŸ§πŸ‰πŸ΄πŸˆπŸŽ†'

# The encrypt and decrypt functions change the value in-place too
decrypted = decrypt(encrypted, key=key)
print(decrypted)
# 'Hello, world!'

Command line tool

Usage

$ cryptmoji encrypt "Hello World" --key "test"
πŸŽΏπŸ‘πŸΈπŸΉπŸπŸ»πŸ‘πŸπŸ„πŸ€πŸͺ

$ cryptmoji decrypt "πŸŽΏπŸ‘πŸΈπŸΉπŸπŸ»πŸ‘πŸπŸ„πŸ€πŸͺ" --key "test"
Hello World

NOTE: key is an optional parameter. If not provided, the value defaults to None.