Skip to content

Commit b749f62

Browse files
committed
fix(security): increase PBKDF2 iterations
1 parent a3abb28 commit b749f62

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

astrbot/core/utils/auth_password.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66
import secrets
77

8-
_PBKDF2_ITERATIONS = 200_000
8+
_PBKDF2_ITERATIONS = 600_000
99
_PBKDF2_SALT_BYTES = 16
1010
_PBKDF2_ALGORITHM = "pbkdf2_sha256"
1111
_PBKDF2_FORMAT = f"{_PBKDF2_ALGORITHM}$"

dashboard/src/i18n/locales/en-US/core/header.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"passwordHint": "At least 12 characters, including uppercase, lowercase letters, and digits",
9191
"confirmPasswordHint": "Please enter new password again to confirm",
9292
"usernameHint": "Leave blank to keep current username",
93-
"defaultCredentials": "The new AstrBot version has improved security. Please change your password."
93+
"defaultCredentials": "The default username and password are astrbot. Please change them immediately after logging in to ensure security."
9494
},
9595
"validation": {
9696
"passwordRequired": "Please enter password",

dashboard/src/i18n/locales/ru-RU/core/header.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"passwordHint": "Не менее 12 символов, включая заглавные и строчные буквы, а также цифры",
9191
"confirmPasswordHint": "Введите новый пароль еще раз",
9292
"usernameHint": "Оставьте пустым, если не хотите менять имя пользователя",
93-
"defaultCredentials": "Новая версия AstrBot улучшила безопасность. Пожалуйста, измените пароль."
93+
"defaultCredentials": "Имя пользователя и пароль по умолчанию — astrbot. Пожалуйста, измените их сразу после входа для обеспечения безопасности."
9494
},
9595
"validation": {
9696
"passwordRequired": "Введите пароль",

0 commit comments

Comments
 (0)