Skip to content

Commit 8153165

Browse files
committed
2.2 Good
1 parent 0a4c8cb commit 8153165

File tree

9 files changed

+2196
-2166
lines changed

9 files changed

+2196
-2166
lines changed

CryptAnyL_A.py

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,32 @@ def uslovia(inputt):
4141
-cl-ppr = clear privat public
4242
-cl-f = clear friend's key
4343
44-
-f + ' ' + choose path to file; выберите путь до файла = It encrypts file and puts it in For_sent. Send this file with stiring of key. Don't encrypted this key by Fiend's key, it's already encrypted, just send file and key. ; Шифрует файл и кладет его в For_sent. Отправьте этот файл и ключ. Не стоит шифровать ключ по ключам друга, они уже зашифрованы по ним. OR USE -p + ' ' + path to file; путь до файла.
44+
-f + ' ' + choose path to file; выберите путь до файла = It encrypts file and puts it in For_sent.
45+
Send this file with stiring of key. Don't encrypted this key by Fiend's key, it's already encrypted, just send file and key. ;
46+
Шифрует файл и кладет его в For_sent. Отправьте этот файл и ключ. Не стоит шифровать ключ по ключам друга, они уже зашифрованы по ним. OR USE -p + ' ' + path to file; путь до файла.
4547
46-
-F + ' ' + key; ключ + (choose path to encrypted file; выберите путь до зашифрованного файла) = It decrypts file and puts it in Down_files. For decrypt file, use key. Don't decrypt key, it works automatically. Расшифрововает файл и кладет в Down_files. Используйте ключ. Не расшифровайте ключ, вставте так же, это произойдет автоматически. OR USE -P + ' ' + key; ключ + (path to encrypted file; путь до зашифрованного файла)
47-
* Don't delete sl.txt or save it with encrypted file! Не удаляй sl.txt или транспортируй его с зашифрованным файлом.
48-
49-
-l = chatting by for_driver.txt
48+
-F + ' ' + key; ключ + (choose path to encrypted file; выберите путь до зашифрованного файла) = It decrypts file and puts it in Down_files.
49+
For decrypt file, use key. Don't decrypt key, it works automatically.
50+
Расшифрововает файл и кладет в Down_files. Используйте ключ.
51+
Не расшифровайте ключ, вставте так же, это произойдет автоматически. OR USE -P + ' ' + key; ключ + (path to encrypted file; путь до зашифрованного файла)
5052
5153
-z = encrypt the file by your password
5254
-Z = decrypt the file by your password
53-
-
55+
56+
-d = creats for_driver.txt
57+
-l = chatting by for_driver.txt
58+
-r = random numbers
59+
5460
While chat ; Во время переписки:
5561
[enter] = Pass this part; Пропустить это действие
5662
57-
This pragram is based on open source libraries. The author is not responsible for data loss during use. By using the program, the user assumes full responsibility for all consequences. The author urges to use the program only with good intentions.;
58-
Это праграмма основана на библиотеках с отрытым исходным кодом. Автор не несет ответсвенность за потерю данных при использования. Пользуясь программой, пользователь принимает полную ответственность за все последствия на себя. Автор настоятельно призывает использовать прогрмму только с благими намериниями.
63+
64+
This pragram is based on open source libraries. The author is not responsible for data loss during use.
65+
By using the program, the user assumes full responsibility for all consequences.
66+
The author urges to use the program only with good intentions.;
67+
Это праграмма основана на библиотеках с отрытым исходным кодом.
68+
Автор не несет ответсвенность за потерю данных при использования. Пользуясь программой, пользователь принимает полную ответственность за все последствия на себя.
69+
Автор настоятельно призывает использовать прогрмму только с благими намериниями.
5970
""")
6071
what_to_do = 'continue'
6172

@@ -142,7 +153,7 @@ def uslovia(inputt):
142153
DRIVE('', '', puthToServer)
143154
driver = True
144155

145-
if '-f' in inputt:
156+
if inputt == '-f':
146157
Tk().withdraw() # we don't want a full GUI, so keep the root window from appearing
147158
path = askopenfilename() # show an "Open" dialog box and return the path to the selected file
148159
# path = inputt.split('-f ')[1]
@@ -163,7 +174,7 @@ def uslovia(inputt):
163174
# pass
164175

165176
# try:
166-
if '-F' in inputt:
177+
if inputt == '-F':
167178
#key = inputt.split(' ')[1]
168179
Tk().withdraw()
169180
path = askopenfilename()
@@ -365,6 +376,23 @@ def uslovia(inputt):
365376
print(extract_tb(exc_info()[2])[0][1], e)
366377
pass
367378
what_to_do = 'continue'
379+
if str(inputt) == '-r':
380+
print("random: "+str(random.random()))
381+
try:
382+
RandomRangeStart = float(input('write range start:'))
383+
if RandomRangeStart == "":
384+
pass
385+
else:
386+
RandomRangeFinish = float(input('write range finish:'))
387+
if RandomRangeFinish == "":
388+
pass
389+
else:
390+
print(str(random.uniform(RandomRangeStart,RandomRangeFinish)))
391+
except:
392+
pass
393+
if str(inputt) == '-d':
394+
with open(os.getcwd()+'/CryptALL/for_driver.txt') as f:
395+
f.read()
368396
return what_to_do
369397
# continue
370398

CryptAnyL_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from textwrap import wrap
1515
from tkinter import Tk
1616
from tkinter.filedialog import askopenfilename
17-
17+
import random
1818
import re
1919
import time
2020
import selenium

0 commit comments

Comments
 (0)