mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 06:46:07 -04:00
crypto modules
This commit is contained in:
parent
f211c1cbab
commit
5fcb5a5cb9
28 changed files with 122 additions and 7 deletions
12
Cryptography/Stream_Ciphers/arc4.py
Normal file
12
Cryptography/Stream_Ciphers/arc4.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
|
||||
from Crypto.Cipher import ARC4
|
||||
|
||||
obj1 = ARC4.new('01234567')
|
||||
obj2 = ARC4.new('01234567')
|
||||
|
||||
text = 'abcdefghijklmnop'
|
||||
cipher_text = obj1.encrypt(text)
|
||||
print cipher_text
|
||||
print obj2.decrypt(cipher_text)
|
Loading…
Add table
Add a link
Reference in a new issue