添加加密文本输入提示示例

This commit is contained in:
2026-03-19 09:43:22 +08:00
parent 7c44654195
commit 20ec7d9c8d
+1
View File
@@ -17,6 +17,7 @@ def main() -> int:
plaintext = sys.argv[1]
if plaintext is None:
try:
# 示例 postgresql://user:password@host:port/dbname
plaintext = input("请输入要加密的文本: ")
except EOFError:
plaintext = ""