mirror of
https://github.com/UrloMythus/UnHided.git
synced 2026-04-11 11:50:51 +00:00
new version
This commit is contained in:
12
mediaflow_proxy/utils/python_aesgcm.py
Normal file
12
mediaflow_proxy/utils/python_aesgcm.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# mediaflow_proxy/utils/python_aesgcm.py
|
||||
|
||||
from .aesgcm import AESGCM
|
||||
from .rijndael import Rijndael
|
||||
|
||||
|
||||
def new(key: bytes) -> AESGCM:
|
||||
"""
|
||||
Mirror ResolveURL's python_aesgcm.new(key) API:
|
||||
returns an AESGCM instance with pure-Python Rijndael backend.
|
||||
"""
|
||||
return AESGCM(key, "python", Rijndael(key, 16).encrypt)
|
||||
Reference in New Issue
Block a user