Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 28, 2012 06:41 AM by megh1207
Member
5 Points
11 Posts
May 26, 2012 06:36 AM|LINK
Greetings, well, I have a database, and made the authentication manually, then I would know, as I can encrypt the data, with the judgment of asp.net, bone and would remain, using MD5 or other:
query.CommandText ="Insert into usuario(nombre,apellido,user,password,pais,sexo,fecha,telefono,correo,codigo,activo) values ('" & TxtNombre.Text & "','" & TxtApellido.Text & "','" & TxtUsuario.Text & "','" & (TxtContra.Text) & "','" & ComboPais.Text & "','" & ComboSexo.Text & "','" & TxtEdad.Text & "','" & TxtTelefono.Text & "','" & TxtCorreo.Text & "','" & codigo & "','no')"
query.Connection = cn
res = query.ExecuteNonQuery
for example in the password field, as I can encrypt?
Where and how I have to put the MD5 or another, if they can get the example would be much better. Advance Thanks!
Contributor
2276 Points
495 Posts
May 28, 2012 06:41 AM|LINK
you can put md5 encryption right before setting query value
for encoding refer this link
http://bloggingabout.net/blogs/rick/archive/2005/05/18/4118.aspx
abreu01
Member
5 Points
11 Posts
Help :)
May 26, 2012 06:36 AM|LINK
Greetings, well, I have a database, and made the authentication manually, then I would know, as I can encrypt the data, with the judgment of asp.net, bone and would remain, using MD5 or other:
query.CommandText ="Insert into usuario(nombre,apellido,user,password,pais,sexo,fecha,telefono,correo,codigo,activo) values ('" & TxtNombre.Text & "','" & TxtApellido.Text & "','" & TxtUsuario.Text & "','" & (TxtContra.Text) & "','" & ComboPais.Text & "','" & ComboSexo.Text & "','" & TxtEdad.Text & "','" & TxtTelefono.Text & "','" & TxtCorreo.Text & "','" & codigo & "','no')"
query.Connection = cn
res = query.ExecuteNonQuery
for example in the password field, as I can encrypt?
Where and how I have to put the MD5 or another, if they can get the example would be much better.
Advance Thanks!
megh1207
Contributor
2276 Points
495 Posts
Re: Help :)
May 28, 2012 06:41 AM|LINK
you can put md5 encryption right before setting query value
for encoding refer this link
http://bloggingabout.net/blogs/rick/archive/2005/05/18/4118.aspx