Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update password hash algoritm. (#1993)
- Loading branch information
Showing
23 changed files
with
2,375 additions
and
410 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
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
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
13 changes: 13 additions & 0 deletions
13
modules/serverpod_auth/serverpod_auth_server/lib/src/business/email_secrets.dart
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,13 @@ | ||
import 'package:serverpod/serverpod.dart'; | ||
|
||
/// Secrets used for email authentication. | ||
abstract class EmailSecrets { | ||
/// The salt used for hashing legacy passwords. | ||
static String get legacySalt => | ||
Serverpod.instance.getPassword('email_password_salt') ?? | ||
'serverpod password salt'; | ||
|
||
/// The pepper used for hashing passwords. | ||
static String? get pepper => | ||
Serverpod.instance.getPassword('emailPasswordPepper'); | ||
} |
Oops, something went wrong.