简体   繁体   English

是php sha1编码base32或base64哈希?

[英]is php sha1 encoding a base32 or base64 hash?

I wonder to know if sha1 or md5 generating a string in base32 or base64 ? 我想知道sha1或md5是否在base32或base64中生成一个字符串?

Because i need to multiply passwords in database to specific dates when temporary generated passwords expires, 因为当临时生成的密码到期时,我需要将数据库中的密码乘以特定日期,

or other techniques to save them on session cookies 或其他技术将它们保存在会话cookie上

Neither. 都不是。 By default the value is returned in HEX notation (16 character alphabet). 默认情况下,该值以HEX表示法返回(16个字符的字母表)。 That's not related to any base* encoding at all. 这与任何base *编码都没有关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM