diff --git a/build/lib/sweecrypt/__init__.py b/build/lib/sweecrypt/__init__.py new file mode 100644 index 0000000..2dd9f65 --- /dev/null +++ b/build/lib/sweecrypt/__init__.py @@ -0,0 +1 @@ +from sweecrypt import decrypt, encrypt \ No newline at end of file diff --git a/build/lib/sweecrypt/sweecrypt.py b/build/lib/sweecrypt/sweecrypt.py new file mode 100644 index 0000000..e388dde --- /dev/null +++ b/build/lib/sweecrypt/sweecrypt.py @@ -0,0 +1,111 @@ +alph = [ + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + "k", + "l", + "m", + "n", + "o", + "p", + "q", + "r", + "s", + "t", + "u", + "v", + "w", + "x", + "y", + "z", + " ", + ",", + ".", + "!", + "?", + "\n", + "'", + "(", + ")", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "0", + "-", +] +codes = [ + "`", + "-", + ")", + "/", + "?", + "^", + "#", + "!", + ";", + ".", + "\\", + "~", + "&", + "*", + "(", + "@", + '"', + ">", + "<", + "[", + "]", + "{", + "}", + "|", + "+", + "_", + ",", + ":", + "=", + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + "k", + "l", + "m", + "n", + "o", + "p", + "q", +] + + +def encrypt(what): + encoded = "" + what = what.lower() + for i in range(len(what)): + encoded += codes[alph.index(what[i])] + return encoded + + +def decrypt(what): + decoded = "" + for i in range(len(what)): + decoded += alph[codes.index(what[i])] + return decoded diff --git a/dist/sweecrypt-1.0-py3-none-any.whl b/dist/sweecrypt-1.0-py3-none-any.whl new file mode 100644 index 0000000..4171c01 Binary files /dev/null and b/dist/sweecrypt-1.0-py3-none-any.whl differ diff --git a/dist/sweecrypt-1.0.tar.gz b/dist/sweecrypt-1.0.tar.gz new file mode 100644 index 0000000..c517b0b Binary files /dev/null and b/dist/sweecrypt-1.0.tar.gz differ diff --git a/sweecrypt.egg-info/PKG-INFO b/sweecrypt.egg-info/PKG-INFO new file mode 100644 index 0000000..93a607f --- /dev/null +++ b/sweecrypt.egg-info/PKG-INFO @@ -0,0 +1,13 @@ +Metadata-Version: 2.1 +Name: sweecrypt +Version: 1.0 +Summary: An easy and fun encryption module. +Author: SweeZero +Author-email: swee@mailfence.com +Classifier: Development Status :: 3 - Alpha +Classifier: Intended Audience :: Education +Classifier: Programming Language :: Python :: 3 +Classifier: Operating System :: OS Independent +License-File: LICENSE + +SweeCrypt is an easy and fun encryption module that turn letters and numbers to symbols found on the keyboard. diff --git a/sweecrypt.egg-info/SOURCES.txt b/sweecrypt.egg-info/SOURCES.txt new file mode 100644 index 0000000..63b3f85 --- /dev/null +++ b/sweecrypt.egg-info/SOURCES.txt @@ -0,0 +1,9 @@ +LICENSE +README.md +setup.py +sweecrypt/__init__.py +sweecrypt/sweecrypt.py +sweecrypt.egg-info/PKG-INFO +sweecrypt.egg-info/SOURCES.txt +sweecrypt.egg-info/dependency_links.txt +sweecrypt.egg-info/top_level.txt \ No newline at end of file diff --git a/sweecrypt.egg-info/dependency_links.txt b/sweecrypt.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sweecrypt.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/sweecrypt.egg-info/top_level.txt b/sweecrypt.egg-info/top_level.txt new file mode 100644 index 0000000..56cf4dd --- /dev/null +++ b/sweecrypt.egg-info/top_level.txt @@ -0,0 +1 @@ +sweecrypt