Skip to content

Commit 9fd5b47

Browse files
committed
made changes for ruff tests
Signed-off-by: grpathak22 <[email protected]>
1 parent fc76072 commit 9fd5b47

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Diff for: ciphers/aes_128.py

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
from Crypto.Cipher import AES
2-
from Crypto.Util.Padding import pad, unpad
31
import base64
2+
from Crypto.Cipher import AES
3+
from Crypto.Util.Padding import pad, unpad
4+
5+
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
11+
with PKCS7 padding for encrypting messages.
12+
13+
For more details, visit:
14+
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
15+
'''
16+
417

518
def aes_encrypt(plaintext: str, key: str) -> str:
619
"""

0 commit comments

Comments
 (0)