Exemple #1
0
        public string unhash(string hashed, string salt)
        {
            stringer s      = new stringer();
            string   pepper = "kn0wn5a1t";

            string unhashed = hashed;

            unhashed = s.decrypt(unhashed, pepper);
            unhashed = s.decrypt(unhashed, salt);

            return(unhashed);
        }
Exemple #2
0
        public string hash(string raw, string salt)
        {
            stringer s      = new stringer();
            string   pepper = "kn0wn5a1t";

            string hashed = raw;

            //hashed = s.encrypt(raw + salt, pepper);
            //hashed = s.encrypt(salt + hashed, salt);

            hashed = s.encrypt(hashed, salt);
            hashed = s.encrypt(hashed, pepper);

            return(hashed);
        }