Skip to content

Commit

Permalink
update 宝塔用户密码生成脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
crow821 committed Jun 1, 2023
1 parent b04f4e9 commit 46474d4
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions BT/BT_encrypt_password.py
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)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BT/Readme.assets/image-20230601174703969.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BT/Readme.assets/image-20230601174739437.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions BT/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
![image.png](Readme.assets/1684847961564-3b638d9e-23db-4369-9bbe-9b88b0e2358a.png)

# 1. 使用须知

请务必遵守法律法规

未授权请勿使用该工具

# 2. 使用方法

直接用自己的盐值以及想要加密的密码:

![image-20230601174703969](Readme.assets/image-20230601174703969.png)



python3 BT_encrypt_password.py

![image-20230601174739437](Readme.assets/image-20230601174739437.png)

0 comments on commit 46474d4

Please sign in to comment.