ciphers = {}
for idx in range(0, counts):
pos = (idx * 4 + 15) % counts
ciphers[alphabet[pos]] = idx
r = ""
for s in "ifpmluglesecdlqp_rclfrseljpkq":
pos = ciphers[s]
r += alphabet[pos]
print ( r )
运行后得到:
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.