tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ICryptographySuite.cs
Go to the documentation of this file.
2
4{
8 public interface ICryptographySuite
9 {
15 byte[] GetSecureBytes(uint amount);
16
23 void SetUserPassword(User user, string newPassword, bool newUser);
24
31 bool CheckUserPassword(User user, string password);
32
38 }
39}
Contains various cryptographic functions.
string GetSecureString()
Generates a 40-length secure ascii string.
bool CheckUserPassword(User user, string password)
Checks a given password matches a given user 's User.PasswordHash. This may result in User....
void SetUserPassword(User user, string newPassword, bool newUser)
Sets a User.PasswordHash for a given user .
byte[] GetSecureBytes(uint amount)
Generates a secure set of bytes.