mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
10 lines
267 B
Python
Executable File
10 lines
267 B
Python
Executable File
import fastdeploy as fd
|
|
import os
|
|
|
|
if __name__ == "__main__":
|
|
input = "Hello"
|
|
cipher, key = fd.encryption.encrypt(input)
|
|
output = fd.encryption.decrypt(cipher, key)
|
|
assert input == output, "test encryption failed"
|
|
print("test encryption success")
|