mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-03 15:24:59 -04:00
Reorganized
This commit is contained in:
parent
ab54dc8e70
commit
2afd831662
281 changed files with 253 additions and 33 deletions
17
Cryptography/Rotation-Ciphers/brute_force_rotation.py
Normal file
17
Cryptography/Rotation-Ciphers/brute_force_rotation.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/python
|
||||
import sys
|
||||
|
||||
CIPHER = "OMQEMDUEQMEK"
|
||||
LETTERS = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
CIPHER = ""
|
||||
shift = 1
|
||||
|
||||
while i < len(LETTERS):
|
||||
for c in CIPHER:
|
||||
if c in LETTERS:
|
||||
CIPHER += LETTERS[(LETTERS.index(c)+shift)%(len(LETTERS))]
|
||||
print("Shift used: " + str(shift))
|
||||
print("Ciphertext: " + CIPHER)
|
||||
print("CIPHER: " + CIPHER)
|
||||
shift = shift + 1
|
||||
CIPHER = ""
|
Loading…
Add table
Add a link
Reference in a new issue