Skip to content

Commit 05a31fb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5f3761b commit 05a31fb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Diff for: ciphers/aes_128.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
import base64
2-
from Crypto.Cipher import AES
2+
from Crypto.Cipher import AES
33
from Crypto.Util.Padding import pad, unpad
44

55

6-
7-
'''
8-
AES (Advanced Encryption Standard) is a symmetric encryption algorithm used
9-
for secure data encryption. AES-128 uses a 128-bit key to encrypt and decrypt
10-
data blocks of 128 bits. This implementation uses Cipher Block Chaining (CBC) mode
6+
"""
7+
AES (Advanced Encryption Standard) is a symmetric encryption algorithm used
8+
for secure data encryption. AES-128 uses a 128-bit key to encrypt and decrypt
9+
data blocks of 128 bits. This implementation uses Cipher Block Chaining (CBC) mode
1110
with PKCS7 padding for encrypting messages.
1211
13-
For more details, visit:
12+
For more details, visit:
1413
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
15-
'''
16-
14+
"""
1715

1816

1917
def aes_encrypt(plaintext: str, key: str) -> str:

0 commit comments

Comments
 (0)