Use the password in the MD5 encrypted database

xiaoxiao2021-03-06  121

Use of the MD5 password database: Meng will come from: [it] would be a wonderful world Meng Date: 2003 at 4:57:50 on April 26

.NET provides data encryption classes, which use examples to explain how to use MD5 for data encryption. First, create a useeraccount table, the fields: username and password, type is varchar (25) and binary (16), the following ASP.NET code is the specific implementation of creating a user: <% @ Import namespace = "system .Security.cryptography "%>

<% @ Import namespace = "system.text"%>

<% @ Import namespace = "system.data"%>

<% @ Import namespace = "system.data.sqlclient"%>