From 037146660d989a1f3167add5908c8dc938e13f9b Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:35:57 +0800 Subject: [PATCH] Add File --- backend/common/utils/crypto.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 backend/common/utils/crypto.py diff --git a/backend/common/utils/crypto.py b/backend/common/utils/crypto.py new file mode 100644 index 0000000..dcd1a13 --- /dev/null +++ b/backend/common/utils/crypto.py @@ -0,0 +1,7 @@ +from sqlbot_xpack.core import sqlbot_decrypt as xpack_sqlbot_decrypt, sqlbot_encrypt as xpack_sqlbot_encrypt + +async def sqlbot_decrypt(text: str) -> str: + return await xpack_sqlbot_decrypt(text) + +async def sqlbot_encrypt(text: str) -> str: + return await xpack_sqlbot_encrypt(text) \ No newline at end of file