mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
9
tests/models/test_encryption.py
Executable file
9
tests/models/test_encryption.py
Executable file
@@ -0,0 +1,9 @@
|
||||
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")
|
Reference in New Issue
Block a user