ASP 3.0的密码加密器/解密器? [英] Password Encryptor/Decryptor for ASP 3.0?

查看:65
本文介绍了ASP 3.0的密码加密器/解密器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我计划加密存储在msaccess数据库中的密码,以及从密码文本框输入的文本
。另外,如果我想从数据库中获取

密码,我需要对其进行解密,以便它可以与文本框中输入的密码相比。

。有没有办法如何处理

这个?


MP

解决方案

< blockquote> MP在microsoft.public.inetserver.asp.general上写了14 okt 2005:

另外,如果我想从数据库中获取
密码,我需要解密它




不是唯一的方法。

你也可以,

如果征服过程是唯一的[=总是得到相同的结果],

比较两种抄本形式。


-

Evertjan。

荷兰。

(用我的电子邮件地址替换所有带点的十字架)


MP写道:

嗨!

我计划加密存储在msaccess数据库中的密码,以及从密码文本框输入的文本。另外,如果我想从数据库中获取密码,我需要对其进行解密,以便它可以与文本框中输入的密码进行比较。有没有办法如何处理这个?

MP




你好MP,


存储密码,单向或哈希。 algorhythms将是最有用的


顾名思义,这是一个单向程序,例如:


密码:mysecretpass

哈希(示例):28F9E2A118B3< ==将其存储在数据库中


用户输入:mysecretpass

计算哈希值:28F9E2A118B3

将此值与存储在DB中的值进行比较。

周围有几种不同的哈希算法,最常用的是
被称为MD5:
http://www.aspfaq。 com / show.asp?id = 2397


此页面上的第一个示例是JavaScript实现,这个

确保密码在客户端计算机上加密并以加密形式提交


HTH

Gottfried

嗨!


感谢您的回复。我的问题是如何处理这个MD5算法?对于

示例,我有一个登录页面,如何使用javascript?


问候,



" Gottfried Mayer" < ng*@NOOfusedSPAAAM.ch>在消息中写道

新闻:e9 ************** @ TK2MSFTNGP09.phx.gbl ...

MP写道:

嗨!

我打算加密存储在msaccess数据库上的密码

也是从密码文本框中输入的文本。另外,如果我想从数据库中获取密码,我需要对其进行解密,以便它可以与文本框中输入的密码进行比较。有没有办法如何处理这个?

MP



你好MP,

为了存储密码,单向或散列可以存储密码。 algorhythms将是最有用的:
顾名思义,这是一个单向程序,例如:

密码:mysecretpass
哈希(示例):28F9E2A118B3< ==将其存储在数据库中

用户输入:mysecretpass
计算哈希值:28F9E2A118B3
将其与存储在数据库中的值进行比较。

周围有几种不同的哈希算法,最常用的是MD5:
http://www.aspfaq.com/show.asp?id=2397

此页面上的第一个示例是JavaScript中的实现,这确保密码在客户端计算机上加密并以加密形式提交。

HTH
Gottfried



Hi!

Im planning to encrypt the password that was stored on msaccess database and
also the text inputed from a password textbox. Also, if I want to get the
password from the database, I need to decrypt it so it can be comparable to
the one that is inputed on the textbox. Is there a way on how to handle
this?

MP

解决方案

M P wrote on 14 okt 2005 in microsoft.public.inetserver.asp.general:

Also, if I want to get the
password from the database, I need to decrypt it



Not the only way.
You also could,
if the encription proces is unique [=gives always the same result],
compare both encripted forms.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


M P wrote:

Hi!

Im planning to encrypt the password that was stored on msaccess database and
also the text inputed from a password textbox. Also, if I want to get the
password from the database, I need to decrypt it so it can be comparable to
the one that is inputed on the textbox. Is there a way on how to handle
this?

MP



Hi M P,

To store passwords, the one-way or "hash" algorhythms will be the most
useful to use:
As the name says, this is a one-way procedure, for example:

Password: mysecretpass
Hash (example): 28F9E2A118B3 <== Store this in DB

User inputs: mysecretpass
Calculate Hash: 28F9E2A118B3
Compare this to value stored in DB.
There are several different hash algorhythms around, the most commonly
used is called MD5:
http://www.aspfaq.com/show.asp?id=2397

The first example on this page is a implementation in JavaScript, this
ensures that the password is encrypted on the client computer and
submitted in the encrypted form.
HTH
Gottfried


Hi!

Thanks for the reply. My question is how do I handle this MD5 algorithm? For
example, I have a login page, how do I use the javascript?

regards,
Me

"Gottfried Mayer" <ng*@NOOfusedSPAAAM.ch> wrote in message
news:e9**************@TK2MSFTNGP09.phx.gbl...

M P wrote:

Hi!

Im planning to encrypt the password that was stored on msaccess database
and
also the text inputed from a password textbox. Also, if I want to get the
password from the database, I need to decrypt it so it can be comparable
to
the one that is inputed on the textbox. Is there a way on how to handle
this?

MP



Hi M P,

To store passwords, the one-way or "hash" algorhythms will be the most
useful to use:
As the name says, this is a one-way procedure, for example:

Password: mysecretpass
Hash (example): 28F9E2A118B3 <== Store this in DB

User inputs: mysecretpass
Calculate Hash: 28F9E2A118B3
Compare this to value stored in DB.
There are several different hash algorhythms around, the most commonly
used is called MD5:
http://www.aspfaq.com/show.asp?id=2397

The first example on this page is a implementation in JavaScript, this
ensures that the password is encrypted on the client computer and
submitted in the encrypted form.
HTH
Gottfried



这篇关于ASP 3.0的密码加密器/解密器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆