public static SaltyPassword CreateNew() { SaltyPassword result = new SaltyPassword(); result.Password = SaltyPassword.CreateRandomPassword(15); result.Salt.FillWithSalt(); return(result); }
public static SaltyPassword CreateFromCleartext(string thisOne) { SaltyPassword result = new SaltyPassword(); foreach (char c in thisOne) { result.Password.AppendChar(c); } result.Salt.FillWithSalt(); return(result); }