Skip to content
Snippets Groups Projects
Commit 16fbe5b5 authored by Viken's avatar Viken
Browse files

Precisions

parent 65155b9d
Branches
No related tags found
No related merge requests found
Showing
with 7 additions and 7 deletions
......@@ -8,9 +8,9 @@ def encryption(key, input_file, output_file, mode = AES.MODE_ECB):
- mode :
- an input file :
- an input file : .bin file
- an output file :
- an output file : .bin file
'''
chunk_size = 16 * 1024 # 16KB chunk size for processing large files
cipher = AES.new(key=key, mode=mode)
......
_J 9
\ No newline at end of file
9 Y/q6[
\ No newline at end of file
S]:#^&-җ_2s;
\ No newline at end of file
o,hq+.W{X6˥6
\ No newline at end of file
;Q~"]*d D2_"
\ No newline at end of file
M@+-*:N_}thGnQx
\ No newline at end of file
......@@ -9,6 +9,7 @@ import os
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
CIPHER = {
"AES" : aes,
"ChaCha20" : chacha,
......@@ -17,7 +18,7 @@ CIPHER = {
}
plaintext = './src v1.1/women in Red.jpg'
plaintext = './src v1.1/test_plaintext/Women in Red.jpg'
def encrypt_and_decrypt(cipher, key, key_size, plaintext_file):
......@@ -94,7 +95,6 @@ while True :
plt.figure()
KEYS_COLOR = {
......
File moved
File moved
src v1.1/test_result/AES/AES_16decrypted_file.jpg

144 KiB

File deleted
File deleted
src v1.1/test_result/AES/AES_24decrypted_file.jpg

144 KiB

File deleted
File deleted
src v1.1/test_result/AES/AES_32decrypted_file.jpg

144 KiB

File deleted
File deleted
src v1.1/test_result/ChaCha20/ChaCha20_16decrypted_file.jpg

144 KiB

File deleted
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment