Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/siddhesh-agarwal/cryptmoji

A simple emoji-based encryption-decryption library.
https://github.com/siddhesh-agarwal/cryptmoji

caesar-cipher emoji encryption encryption-decryption python python-library python3

Last synced: about 18 hours ago
JSON representation

A simple emoji-based encryption-decryption library.

Awesome Lists containing this project

README

        

# πŸ₯· Cryptmoji

A simple emoji-based encryption-decryption library.

![Downloads](https://static.pepy.tech/personalized-badge/cryptmoji?period=total&units=international_system&left_color=grey&right_color=green&left_text=Downloads)
_______________________

## πŸ“₯ Installation

You can use the [pip](https://pypi.org/project/pip/) package manager to install the library.

```sh
pip install cryptmoji
```

or use [poetry](https://python-poetry.org/):

```sh
poetry add cryptmoji
```

> Check the [Documentation](https://siddhesh-agarwal.github.io/cryptmoji/)

## πŸ“ Usage

```python
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

```sh
$ 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`.