在sql中加密密码? [英] Encrypt paswords in sql?

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

问题描述

好的,所以我把所有的bug都杀了所以现在我可以处理像sql密码这样的重要问题。

当一个成员加入它时,不要加密,所以我想知道它是否' 这是一个大问题还是应该尝试这样做?


让我知道以及从哪里开始。

解决方案


好​​的,所以我把所有的bug都杀了所以现在我可以解决像sql密码这样的重要问题。

当一个成员加入它时不要加密,所以我想知道这是一个大问题还是我应该尝试这样做?


让我知道以及从哪里开始。



Hey Breana,

加密密码是个好主意,否则任何有权访问你的数据库(或任何存储机制)的人都可以获取密码。 PHP有一个名为md5()的函数,它进行单向加密(你不能解密它)。



查看这个帖子:<链接删除> ;


它应该给你一个好主意。


Cya

Al


不允许发布指向其他论坛的链接。请在发布前阅读发布指南,尤其是关于通常无法接受的事情

主持人



好​​的,所以我把所有的bug都杀了所以现在我可以解决像sql密码这样的重要问题。

当一个成员加入它时,不要加密,所以我想知道这是一个大问题还是我应该尝试这样做?


让我知道,从哪里开始。



嗨。


一个非常好的解决方案是根据用户提供的密码创建一个哈希值。


这很容易使用PHP。您可以使用 md5()函数,该函数生成32个字符长(128位)的哈希值或 sha1()函数,它生成一个40个字符长(160位)的哈希值。


哈希是密码的理想选择,因为它们无法恢复原状,这意味着即使有人掌握了密码数据库,对他们来说也几乎没用。 / BLOCKQUOTE>

Ok, so i got all my bugs killed so now i can work on obivous issues like sql passwords.
When a member joins it don''t encrypt um so i was wondering if it''s a big deal or should i try to do that?

Let me know and where to start thanx.

解决方案

Ok, so i got all my bugs killed so now i can work on obivous issues like sql passwords.
When a member joins it don''t encrypt um so i was wondering if it''s a big deal or should i try to do that?

Let me know and where to start thanx.

Hey Breana,
It is a good idea to encrypt passwords otherwise anyone who has access to your Database (or whatever storage mechanism) can obtain passwords. PHP has a function called md5() which does one way encryption (you cannot decrypt it).


Have a look at this thread: <Link removed>

It should give you a good idea.

Cya
Al


Posting links to other forums is not allowed. Please read the Posting Guidelines before posting, especially the part about Things that are generally unacceptable.

Moderator


Ok, so i got all my bugs killed so now i can work on obivous issues like sql passwords.
When a member joins it don''t encrypt um so i was wondering if it''s a big deal or should i try to do that?

Let me know and where to start thanx.

Hi.

A very good solution to this would be to create a hash based on the password provided by your user.

This is very easy to do using PHP. You can use the md5() function, which generates a 32 character long (128bit) hash or the sha1() function, which generates a 40 character long (160bit) hash.

Hashes are ideal for passwords because they can not be reverted back to their original form, which means that even if somebody got a hold of you password database, it would be pretty much useless to them.


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

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