tgstation-server
The /tg/station 13 server suite
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 
37  string GetSecureString();
38  }
39 }
bool CheckUserPassword(User user, string password)
Checks a given password matches a given user 's User.PasswordHash. This may result in User....
byte [] GetSecureBytes(uint amount)
Generates a secure set of bytes
Contains various cryptographic functions
void SetUserPassword(User user, string newPassword, bool newUser)
Sets a User.PasswordHash for a given user
string GetSecureString()
Generates a 40-length secure ascii string