我知道作为一个程序员很少有人这样做,但我实际上需要它并且根本不需要它,所以有人需要将这个小函数密码学python转换为delphi。
function: `
from Crypto.Cipher import Blowfish
class Blowfish(object):
cipher = None
def __init__(self, key, mode = Blowfish.MODE_ECB):
self.cipher = Blowfish.new(key, mode)
def encrypt(self, texto):
encriptar = self.cipher.encrypt(texto)
return encriptar `
-
one example
key = 123key
text = hi man
result = ìûÕ]–•¢
我很多次,因为我尝试在 Delphi 中做,总是向我展示不同的结果,然后做得更好,并要求了解 python / delphi 的人
非常感谢!