Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweeistaken authored Apr 4, 2024
1 parent c8530bc commit 4fe22c8
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/lib/sweecrypt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from sweecrypt import decrypt, encrypt
111 changes: 111 additions & 0 deletions build/lib/sweecrypt/sweecrypt.py
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 added dist/sweecrypt-1.0-py3-none-any.whl
Binary file not shown.
Binary file added dist/sweecrypt-1.0.tar.gz
Binary file not shown.
13 changes: 13 additions & 0 deletions sweecrypt.egg-info/PKG-INFO
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.
9 changes: 9 additions & 0 deletions sweecrypt.egg-info/SOURCES.txt
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
1 change: 1 addition & 0 deletions sweecrypt.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sweecrypt.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sweecrypt

0 comments on commit 4fe22c8

Please sign in to comment.