vb6上的md5 / hash? [英] md5/hash on vb6?

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

问题描述

我正在制作一个有登录信息的程序。有什么方法来加密正常密码,以便它不能在数据库中读取?我做了一个窍门,但我不满足于此。我所做的只是获得第一个,中间和最后一个字符,并将每个字符转换为ASCII。有没有办法将所有的文本转换为ascii或类似md5 /哈希在PHP?



我真的很抱歉这件事,我没有提到我的项目是一个VB6项目。

解决方案

不要使用MD5存储哈希密码!出于某些原因,请参阅 http://www.freerainbowtables.com/ 等内容。 MD5被彻底打破...检查你在VB6中有什么可用(我几乎不是VB6的人;-))在密码领域。基于(腌制)密码的加密东西是你想要的,谷歌的vb6 pbkdf2,我看到很多点击:)

I'm making a program that has a login. Is there any way to encrypt the normal password so that it can't be read in the data base? I've done a trick but I'm not content with it. What I did was to get the first, mid, and last char only and convert each char into ascii. Is there a way to convert all the text into ascii or something like md5/hash in php?

I'm really sorry about this thing, I haven't mentioned that my project is a VB6 project.

解决方案

Don't use MD5 to store hashed passwords! See stuff like http://www.freerainbowtables.com/ for reasons why. MD5 is thoroughly broken... Check what you have available in VB6 (I'm hardly a VB6 guy ;-)) in the realm of cryptography. Something based on (salted) password-based encryption stuff is what you want, Google for "vb6 pbkdf2", I see a lot of hits there :)

这篇关于vb6上的md5 / hash?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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