Skip to content

Commit

Permalink
version 1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhesh-Agarwal committed Sep 5, 2022
1 parent 0835636 commit 78484c0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
5 changes: 4 additions & 1 deletion cryptmoji/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
__version__ = "0.2.0"
from cryptmoji.data import LENGTH, emojis
from cryptmoji.main import Cryptmoji

__version__ = "1.0.0"
11 changes: 1 addition & 10 deletions cryptmoji/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from data import LENGTH, emojis
from cryptmoji.data import LENGTH, emojis


class Cryptmoji:
Expand Down Expand Up @@ -59,12 +59,3 @@ def decrypt(self) -> str:
decrypted = [emojis_2_int[i] for i in range(len(emojis_2_int))]
self.text = [chr(i) for i in decrypted]
return "".join(self.text)


if __name__ == "__main__":
text = "Hello World!"
key = "random_key"
a = Cryptmoji(text, key)
encrypted = a.encrypt()
print(encrypted)
print(a.decrypt())
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tool.poetry]
name = "cryptmoji"
version = "0.2.0"
version = "1.0.0"
description = "Encrypt Text using emojis!"
authors = ["Siddhesh Agarwal <siddhesh.agarwal@gmail.com>"]
license = "MIT"
license = "MIT License"
readme = "README.md"
repository = "https://github.com/Siddhesh-Agarwal/cryptmoji"
keywords = ["encryption", "emoji", "cipher"]
Expand All @@ -25,7 +25,7 @@ classifiers = [
]

[tool.poetry.dependencies]
python = ">=3.6"
python = "^3.6"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cryptmoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.2.0"
assert __version__ == "1.0.0"

0 comments on commit 78484c0

Please sign in to comment.