viencrypt 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- init.py +0 -0
- viencrypt/__init__.py +0 -0
- viencrypt/main.py +56 -0
- viencrypt-0.1.0.dist-info/METADATA +40 -0
- viencrypt-0.1.0.dist-info/RECORD +8 -0
- viencrypt-0.1.0.dist-info/WHEEL +5 -0
- viencrypt-0.1.0.dist-info/entry_points.txt +2 -0
- viencrypt-0.1.0.dist-info/top_level.txt +2 -0
init.py
ADDED
|
File without changes
|
viencrypt/__init__.py
ADDED
|
File without changes
|
viencrypt/main.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import time
|
|
2
|
+
import art
|
|
3
|
+
from art import *
|
|
4
|
+
import colorama
|
|
5
|
+
from colorama import init, Fore, Back, Style
|
|
6
|
+
import random
|
|
7
|
+
|
|
8
|
+
def main():
|
|
9
|
+
alphabet = "abcdefghijklmnopqrstuvwxyz"
|
|
10
|
+
alphnum = int(-1)
|
|
11
|
+
Art = text2art("VIENCRYPT", chr_ignore=True)
|
|
12
|
+
print(Fore.MAGENTA + Art)
|
|
13
|
+
|
|
14
|
+
print(
|
|
15
|
+
"""what do you want to do? :)
|
|
16
|
+
E = Encrypt
|
|
17
|
+
D = Decrypt
|
|
18
|
+
I = Project Info"""
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
choice = input("choose: ")
|
|
22
|
+
if(choice == "D"):
|
|
23
|
+
encryption_key = input("enter key: ")
|
|
24
|
+
string = input("enter string: ")
|
|
25
|
+
decrypted = " "
|
|
26
|
+
for char in string:
|
|
27
|
+
if char in alphabet:
|
|
28
|
+
decrypted += alphabet[encryption_key.index(char)]
|
|
29
|
+
else:
|
|
30
|
+
decrypted += char
|
|
31
|
+
|
|
32
|
+
print("string: " + string + " decrypted with key " + encryption_key)
|
|
33
|
+
print("key: " + encryption_key)
|
|
34
|
+
print("result: " + decrypted)
|
|
35
|
+
elif(choice == "E"):
|
|
36
|
+
encryption_key = ''.join(random.sample(alphabet, len(alphabet)))
|
|
37
|
+
print("your key is:" + encryption_key)
|
|
38
|
+
string = input("enter string: ")
|
|
39
|
+
encrypted = ""
|
|
40
|
+
for char in string:
|
|
41
|
+
if char in alphabet:
|
|
42
|
+
encrypted += encryption_key[alphabet.index(char)]
|
|
43
|
+
else:
|
|
44
|
+
encrypted += char
|
|
45
|
+
print("your key is: " + encryption_key)
|
|
46
|
+
print("your string is: " + encrypted)
|
|
47
|
+
elif(choice == "I"):
|
|
48
|
+
print(
|
|
49
|
+
"""made by violetdoesntexist
|
|
50
|
+
mit licensed full open source
|
|
51
|
+
violetdoesntexist on github discord insta and more+
|
|
52
|
+
hope you like this little dumb program of mine! :3 """
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
if __name__ == "__main__":
|
|
56
|
+
main()
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: viencrypt
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Simple unsafe encryption program
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: art
|
|
8
|
+
Requires-Dist: colorama
|
|
9
|
+
|
|
10
|
+
# VI ENCRYPT
|
|
11
|
+
my little pretty unsafe text encryption tool made in python!!!
|
|
12
|
+
|
|
13
|
+
# Usage
|
|
14
|
+
## install needed modules
|
|
15
|
+
install colorama and art via pip\
|
|
16
|
+
pip install [package name]
|
|
17
|
+
|
|
18
|
+
## pull repo and run
|
|
19
|
+
pull the repo and run main.py\
|
|
20
|
+
cd [repo directory]\
|
|
21
|
+
python main.py
|
|
22
|
+
### other ways to run may be added later
|
|
23
|
+
|
|
24
|
+
# How does this work :o?
|
|
25
|
+
the encryption key is a shuffled version of the alphabet that gets resorted to the regular alphabet in decrption
|
|
26
|
+
so for example\
|
|
27
|
+
kslraybzxvdwigofqechptnujm\
|
|
28
|
+
k = a\
|
|
29
|
+
s = b\
|
|
30
|
+
l = c\
|
|
31
|
+
etc.
|
|
32
|
+
this obviously means its not very secure at all, but i didnt make this with the expectation of this being the greatest encryption algorithm ever
|
|
33
|
+
|
|
34
|
+
# Ai Usage
|
|
35
|
+
the code is not ai coded but some of the issues were fixed with ai help, using it to point out mistakes and explain needed changes
|
|
36
|
+
|
|
37
|
+
# Authors
|
|
38
|
+
Me!, Violet Rufe Viguiye
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
init.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
viencrypt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
viencrypt/main.py,sha256=x_W3nJSo4QISaCYx46h_btjvMVGTT17RTQv8g_N2IeQ,1688
|
|
4
|
+
viencrypt-0.1.0.dist-info/METADATA,sha256=C-A3w5sPDpYyvSoXbLCuCZQRXhPU0xbseDsICJoS6XY,1041
|
|
5
|
+
viencrypt-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
6
|
+
viencrypt-0.1.0.dist-info/entry_points.txt,sha256=OPOkg1Vv6xtKzjW_kofb0w-BcECgiM1jpsYetjo1rXE,50
|
|
7
|
+
viencrypt-0.1.0.dist-info/top_level.txt,sha256=gnBjIpp62VL9PkAZkt79YGzm36NZuJVQdEJlCh9BR0U,15
|
|
8
|
+
viencrypt-0.1.0.dist-info/RECORD,,
|