CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.commerce_starter_kit Tags:
Item Type: Date Entered: 4/26/2004 2:45:27 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 86 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"rmvenancio" <>
NewsGroup User
Crypt Password4/26/2004 2:45:27 PM

0


Anyone have made any module to encrypt/decrypt customers passwords in the database ?

If no one have made this, can anyone recomend a good article how to use C# to ecrypt passawords in the database ?

Thank you for your help.
"LiquidEnforcer
NewsGroup User
Re: Crypt Password5/18/2004 11:08:38 PM

0

Check out using MD5. Its one way encryption but all you have to do to check a users password is compare the hash of the entered password to the hash in the database.
"jemery27" <>
NewsGroup User
Re: Crypt Password7/10/2004 9:07:36 PM

0

Here is an article I used to get this working:

http://aspnet.4guysfromrolla.com/articles/103002-1.aspx

I added a function in the customersDB class called hashPassword, then just called it from everywhere I normally used the string password. I also changed the datatypes in the database, stored procedures and class functions to use binary(16) or byte() as appropriate. FYI - you have to use byte(), not byte as the type. (it is an array of bytes, not just a byte type)

Jason
"jemery27" <>
NewsGroup User
Re: Crypt Password7/11/2004 6:58:26 PM

0

I found an even better way to do this:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;308157

You will also notice you do not need to write your own hash function. Instead you can leave all the stored procs, tables, and class functions as strings and use this:

"You may want to store passwords securely in a database. You can use the FormsAuthentication class utility function named HashPasswordForStoringInConfigFile to encrypt the passwords before you store them in the database or configuration file."

It's in the system.web.security class and you just add the imports to any vb files which need to create the hashes.

"webxcraz" <>
NewsGroup User
Re: Crypt Password7/15/2004 3:00:40 PM

0

Here's a simple function that encrypts any string into a MD5 hash string:


Public Function EncryptMD5(ByVal text As String) As String
Dim md5Hasher As New MD5CryptoServiceProvider
Dim encoder As String
encoder = BitConverter.ToString(md5Hasher.ComputeHash(Encoding.ASCII.GetBytes(text))).Replace("-", Nothing)
Return encoder
End Function

this uses the "System.Security.Cryptography" namespace

-Frank
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:













changed access rights event notification

[inquiry] linux in business

getting back to novell

routing table changes

high traffic from a server

need help.

cant receive message under vista

reply address gets changed to externaldom.externalpo.extuser

need help - sles vs windows2008 / windows7

help me keep novell

idm platform survey

help out a fellow novell guy

identify admin equivalent user accounts

novell administrator needed

zcm with vmware

user gpo not applying to terminal client session

novell client 4.91 sp5 install problems

find e-mail message by message id

accessing lotus 123 files on novell server

copy/move folders from oes linux (nss) to oes linux (nss)

password synch question nds and ad

automatic/prompted edirectory user creation

clients not getting gateway through dhcp

job: novel technical lead - lincoln, ne

internal error: fffffd29

reverse lookup for active directory in novell dns

advice about moving files from server 4.12 to a sbs 5.0

cedega, etc... ?

twm > gnome

red dot cms interface netware 5.1 with ldap services

novell 6.5 - arcserve emails

centralized antivirus without a domain

unable to login

zenworks agent 7.01

can't update trustee rights in consoleone from a vista pc

jre 1.4.2_18 update for consoleone 1.36h

restore files netware

asking for help about using regexp match user name

gw6 import document to shared folder via command line or app

http and https

user gpo not applying to terminal client session

ldap

loading module xnfs.nlm - init fail

logrotate dont recreates logfiles with 644

   
  Privacy | Contact Us
All Times Are GMT