forked from crow821/crowsec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- encoding: utf-8 -*- | ||
# Time: 2023/01/23 10:49:37 | ||
# Author: crow | ||
# 微信公众号:乌鸦安全 | ||
# 使用须知:请务必遵守网络安全法规! | ||
|
||
|
||
import hashlib | ||
|
||
def encrypt_password(password): | ||
salt = 'xxxxx' # 替换为你自己的盐值 | ||
hashed_password = hashlib.md5(hashlib.md5(hashlib.md5(password.encode()).hexdigest().encode() + '_bt.cn'.encode()).hexdigest().encode() + salt.encode()).hexdigest() | ||
return hashed_password | ||
|
||
# 示例用法 | ||
password = 'admin' | ||
encrypted_password = encrypt_password(password) | ||
print(encrypted_password) |
Binary file added
BIN
+136 KB
BT/Readme.assets/1684847961564-3b638d9e-23db-4369-9bbe-9b88b0e2358a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
 | ||
|
||
# 1. 使用须知 | ||
|
||
请务必遵守法律法规 | ||
|
||
未授权请勿使用该工具 | ||
|
||
# 2. 使用方法 | ||
|
||
直接用自己的盐值以及想要加密的密码: | ||
|
||
 | ||
|
||
|
||
|
||
python3 BT_encrypt_password.py | ||
|
||
 |