Example #1
0
        public static SaltyPassword CreateNew()
        {
            SaltyPassword result = new SaltyPassword();

            result.Password = SaltyPassword.CreateRandomPassword(15);
            result.Salt.FillWithSalt();
            return(result);
        }
Example #2
0
        public static SaltyPassword CreateFromCleartext(string thisOne)
        {
            SaltyPassword result = new SaltyPassword();

            foreach (char c in thisOne)
            {
                result.Password.AppendChar(c);
            }
            result.Salt.FillWithSalt();
            return(result);
        }