douhe5092 2012-07-22 10:15
浏览 43
已采纳

PHP / SQL - 密码和电子邮件安全(理论)[重复]

Possible Duplicate:
Best way to encode passwords in PHP

I've been reading a lot of things about password and email hashing and I am not quiet sure I figure out what is the best method. It's clear that md5 and SHA are outdated and pretty useless but when it comes to all the crypt's, mcrypt_encrypt, hash(), etc.:

  • which one is an effective way of secure PASSWORDS AND EMAILS nowadays?;(maybe A BEST way?)
  • can I use the same method for both?;

Really appreciated if someone could give me some advise.

  • 写回答

2条回答 默认 最新

  • dongru2019 2012-07-22 10:25
    关注

    Have a look at this blog. It as good information about password hashing.

    http://blog.ircmaxell.com/search/label/Password-Hashing

    The author also has a password hashing library, which only uses quality, vetted algorithms.

    That note aside, you should use bcrypt, or PBKDF2 for password hashing.

    As for email encryption, PGP/GPG is your best bet for cross compatible/supported email encryption.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 MATLAB联合adams仿真卡死如何解决(代码模型无问题)
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点
  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改