first commit
This commit is contained in:
30
验证码解密.py
Normal file
30
验证码解密.py
Normal file
@@ -0,0 +1,30 @@
|
||||
import hashlib
|
||||
|
||||
# 示例数据
|
||||
examples = {
|
||||
'heya': '1FA8C4C7BDD9408BAD02699471B5629A',
|
||||
'nnpb': 'DCCADE02E9D246209EC015C047446AD2',
|
||||
'bgjg': '7D047B2859364B688B02B4086967C8F2',
|
||||
'ykwx': 'CFAB208B47CF4E26B5F06066D9E934C8',
|
||||
'teuc': '89AF6320D6C849F2BC8755BEB5D3596F'
|
||||
}
|
||||
|
||||
# 目标解析值
|
||||
target_uuid = 'F02450C8858C498E84924B725AC6B6EB'
|
||||
|
||||
# 尝试找到可能的解码方式
|
||||
def find_key_by_hash(target_hash):
|
||||
for key, value in examples.items():
|
||||
# 将key编码成字节
|
||||
key_bytes = key.encode()
|
||||
# 使用md5进行哈希
|
||||
hashed_key = hashlib.md5(key_bytes).hexdigest().upper()
|
||||
print(key)
|
||||
print(hashed_key)
|
||||
if hashed_key == target_hash:
|
||||
return key
|
||||
return None
|
||||
|
||||
# 查找目标值的对应key
|
||||
result = find_key_by_hash(target_uuid)
|
||||
print(f'解析结果: {result}') # 期望输出 'hape'
|
||||
Reference in New Issue
Block a user