(self, key, iv, text)
| 166 | return Random.new().read(AES.block_size) |
| 167 | |
| 168 | def _aes_encrypt(self, key, iv, text): |
| 169 | return AES.new(key, AES.MODE_CBC, iv).encrypt(text) |
| 170 | |
| 171 | def _aes_decrypt(self, key, iv, text): |
| 172 | return AES.new(key, AES.MODE_CBC, iv).decrypt(text) |