-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8530bc
commit 4fe22c8
Showing
8 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from sweecrypt import decrypt, encrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Metadata-Version: 2.1 | ||
Name: sweecrypt | ||
Version: 1.0 | ||
Summary: An easy and fun encryption module. | ||
Author: SweeZero | ||
Author-email: [email protected] | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sweecrypt |