SEED 128 - kisa python3버전 포팅
from cryptography.hazmat.backends.openssl.backend import backend from cryptography.hazmat.primitives.ciphers import algorithms, base, modes import base64 class SEED128: def __init__(self, iv, key): self.iv = bytes(iv, encoding='utf-8') self.key = bytes(key, encoding='utf-8') self.seed = algorithms.SEED(self.key) pass def encode(self, mode, text): cipher = base.Cipher(self.seed, mode(self.iv), ba..
2021. 8. 13.