1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-08-16 21:31:45 +02:00
Files
.config
.run
.workdir
Agent
Common
Phantom.Common.Data
Phantom.Common.Data.Tests
Phantom.Common.Data.Web
Agent
AuditLog
EventLog
Instance
Minecraft
Users
AddRoleError.cs
AddUserError.cs
AuthenticatedUserInfo.cs
ChangeUserRolesResult.cs
CreateOrUpdateAdministratorUserResult.cs
CreateUserResult.cs
DeleteUserResult.cs
LogInSuccess.cs
PasswordRequirementViolation.cs
Permission.cs
PermissionSet.cs
RoleInfo.cs
SetUserPasswordError.cs
UserActionFailure.cs
UserInfo.cs
UserInstanceActionFailure.cs
UserPasswords.cs
UsernameRequirementViolation.cs
Phantom.Common.Data.Web.csproj
Phantom.Common.Messages.Agent
Phantom.Common.Messages.Web
Controller
Docker
Utils
Web
.dockerignore
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
Directory.Build.props
Directory.Build.targets
Dockerfile
LICENSE
Packages.props
PhantomPanel.sln
README.md
global.json
2023-12-05 14:27:55 +01:00

13 lines
330 B
C#

namespace Phantom.Common.Data.Web.Users;
public static class UserPasswords {
public static string Hash(string password) {
return BCrypt.Net.BCrypt.HashPassword(password, workFactor: 12);
}
public static bool Verify(string password, string hash) {
// TODO rehash
return BCrypt.Net.BCrypt.Verify(password, hash);
}
}