Karenvand
Karenvand

Reputation: 11

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

Upvotes: 0

Views: 896

Answers (1)

deceze
deceze

Reputation: 522382

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

Upvotes: 2

Related Questions