This commit is contained in:
sjk
2026-01-06 19:36:42 +08:00
parent 15b579d64a
commit 19942144fb
261 changed files with 24034 additions and 5477 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hashlib
passwords = [
"123456",
"password",
"admin123",
]
print("=== Python SHA256 密码加密测试 ===")
for pwd in passwords:
hash_result = hashlib.sha256(pwd.encode('utf-8')).hexdigest()
print(f"密码: {pwd}")
print(f"SHA256: {hash_result}\n")