Hi,

I am doing a project and I would like to know how to store usernames and passwords in an Access database, I have no clue but I know that my table must have fields for a userID,UserName and Password

Please help!

Recommended Answers

All 2 Replies

Look up the .NET framework's MD5 framework. Documentation is here and you can search for plenty more besidse. Good luck.

//in your method:
        string text = "Some text to crypt";
        string crypt = Crypt(source);

        //calls:
        private string Crypt(string input)
        {
            MD5CryptoServiceProvider hasher = new MD5CryptoServiceProvider();
            byte[] data = hasher.ComputeHash(Encoding.UTF8.GetBytes(input));

            StringBuilder sb = new StringBuilder();
            foreach (byte b in data)
                sb.AppendFormat("{0:x2}", b); 

            return (sb.ToString());
        }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.