PHP:加密

加密1): md5()

PHP:加密

代码

PHP:加密

显示

ps: md5()可以将任意长度的字符串 转换 为128位也就是32个16进制字符

加密2): crypt()

PHP:加密

使用

PHP:加密

ps: "hello"是秘钥

加密3);sha1()

PHP:加密

PHP:加密

sha1()

ps: 返回40位16进制数字.

后语: 无法进行解密 , 如果想进行解密 , 请使用Mcrypt()

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin
avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: