()
| 65 | return plainText |
| 66 | |
| 67 | def getRandomKey(): |
| 68 | while True: |
| 69 | keyA = random.randint(2, len(SYMBOLS)) |
| 70 | keyB = random.randint(2, len(SYMBOLS)) |
| 71 | if cryptoMath.gcd(keyA, len(SYMBOLS)) == 1: |
| 72 | return keyA * len(SYMBOLS) + keyB |
| 73 | |
| 74 | if __name__ == '__main__': |
| 75 | import doctest |
nothing calls this directly
no outgoing calls
no test coverage detected