(plaintext)
| 71 | return plaintext.decode() |
| 72 | |
| 73 | def b64_rsa(plaintext): |
| 74 | public_key = RSA.import_key(public_key_b64) |
| 75 | cipher = PKCS1_v1_5.new(public_key) |
| 76 | ciphertext = cipher.encrypt(plaintext.encode()) |
| 77 | return base64.b64encode(ciphertext).decode() |
| 78 | |
| 79 | def encode_phone(text): |
| 80 | return ''.join(chr(ord(char) + 2) for char in text) |
no test coverage detected