Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Password encryption in SQL
Old 10-17-2006, 05:36 PM Password encryption in SQL
Registered User

Posts: 29
Trades: 0
I am in the process of creating a site and I feel user confidentiality and security are very important. I am just starting to learn and use SQL (MySQL specifically) and have a question. Looking through some books I have, I am suggested to use the SHA() function of encrypting instead of MD5(). I have seen alot of file security using the MD5 hashes, but heard little about SHA. Is SHA the way to go when encrypting my user's passwords, should I use MD5, or is there an even better yet option out there?
wkdown is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-18-2006, 02:23 AM Re: Password encryption in SQL
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
I think they are both fine to use - a more secure method would be to create a generic salt by a random generated number, and then append users password to new salt, encrypt it, and then place the new salt on the right with a split char. This would build a different encryption each time, but would be equal each time its decrypted.

I'm creating a site in which I use MD5 to encrypt db passwords, and use SHA to encrypt the password in the cookie on the users side.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Password encryption in SQL
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44036 seconds with 12 queries