简体   繁体   中英

is php sha1 encoding a base32 or base64 hash?

I wonder to know if sha1 or md5 generating a string in base32 or 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

Neither. By default the value is returned in HEX notation (16 character alphabet). That's not related to any base* encoding at all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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