Ejemplo n.º 1
0
        public static PasswordHash HashPassword(this string origin)
        {
            ISerializable edo  = EDObjectContext.CreateInstance();
            PasswordHash  hash = new PasswordHash();

            hash.IV       = edo.IV;
            hash.Key      = edo.Key;
            hash.Password = edo.EncryptoObject(origin);
            hash.Length   = edo.TextBytesLength;

            return(hash);
        }