文件名称:md5-encrypted--users-password
介绍说明--下载内容均来自于网络,请自行研究使用
一些网站往往将用户的账号、密码等信息使用非加密的方式保存到数据库,比如账号使用类型为VarChar的UserCount字段,同样,密码也是采用类型为VarChar的Password字段。但是,如果我们打算采用MD5加密方式存储密码信息,就必须改变密码字段PassWord的类型为16为二进制方式,这个其实我们也不难理解,因为在前面的介绍中,我们知道加密以后的输出,是使用二进制数组的,所以,这里必须做相应的改变。
当用户注册成功,正式建立一个账号的时候,数据库中就必须为这个用户增加一条记录。以下的程序代码实现了建立一个账号的功能,在页面中,程序要求用户输入账号、密码等信息,然后,将这些信息作为账号信息存入名为UserCount的数据表,在这个表中,用户密码是使用MD5加密保存的-Some sites tend to be the user s information such as account number, Password, the use of encryption way saved to the database, such as account using type VarChar UserCount fields, and also, the Password is also used the Password field is of type VarChar. But, if we are going to use MD5 encryption storage PassWord information, you must change PassWord field type for 16 binary way, this in fact we also is easy to understand, because in front of the introduction, we know that encrypted output, is to use binary array, so it must change accordingly.
When a user registration, formally set up an account, the database will have to add a record to this user. The following program code can realize the function set up an account, on the page, program asks the user to input the information such as account number, password, and then, as the account information in the information data table, called UserCount in this table, the user password is to use MD5 encryption preserved
当用户注册成功,正式建立一个账号的时候,数据库中就必须为这个用户增加一条记录。以下的程序代码实现了建立一个账号的功能,在页面中,程序要求用户输入账号、密码等信息,然后,将这些信息作为账号信息存入名为UserCount的数据表,在这个表中,用户密码是使用MD5加密保存的-Some sites tend to be the user s information such as account number, Password, the use of encryption way saved to the database, such as account using type VarChar UserCount fields, and also, the Password is also used the Password field is of type VarChar. But, if we are going to use MD5 encryption storage PassWord information, you must change PassWord field type for 16 binary way, this in fact we also is easy to understand, because in front of the introduction, we know that encrypted output, is to use binary array, so it must change accordingly.
When a user registration, formally set up an account, the database will have to add a record to this user. The following program code can realize the function set up an account, on the page, program asks the user to input the information such as account number, password, and then, as the account information in the information data table, called UserCount in this table, the user password is to use MD5 encryption preserved
(系统自动生成,下载前可以参看下载内容)
下载文件列表
用md5加密数据库中的用户密码.doc