mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
10 lines
194 B
Python
10 lines
194 B
Python
|
import _aes
|
||
|
|
||
|
MODE_ECB = _aes.AES.MODE_ECB
|
||
|
MODE_CBC = _aes.AES.MODE_CBC
|
||
|
|
||
|
def new(password:any, mode:int, iv=None) -> _aes.AES:
|
||
|
aes = _aes.AES()
|
||
|
aes.new(password, mode, iv)
|
||
|
return aes
|