-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfademo.py
More file actions
33 lines (23 loc) · 806 Bytes
/
fademo.py
File metadata and controls
33 lines (23 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import frequencyanalysis as fa
def main():
"""
Demonstration of the frequencyanalysis module.
"""
print("----------------------")
print("| codedrome.com |")
print("| Frequency Analysis |")
print("----------------------\n")
# try:
# fa.create_decryption_dictionary("the_sign_of_four_plaintext.txt",
# "encrypted.txt",
# "decryption_dict.json")
# except Exception as e:
# print(e)
try:
fa.decrypt_file("encrypted.txt",
"decrypted.txt",
"decryption_dict.json")
except Exception as e:
print(e)
if __name__ == "__main__":
main()