if self._salt == "":
raise Exception('the salt can not be empty.')
pip install random_tool
示例代码:
from random_encrypt import RandomEncrypt
if __name__ == '__main__':
e = RandomEncrypt({"salt": "salt"})
s = e.encrypt("hello world")
print(s)
t = e.decrypt(s[0])
print(t)