Vsevolod Poletaev
Vsevolod Poletaev

Reputation: 1532

Storing password hashes

In tutorials about web app security all example databases have character-typed fields for hashes. Are there any (security) reasons to store password hashes as Base64-encoded string. Why not store it as binary blob?

Upvotes: 3

Views: 63

Answers (1)

Glorfindel
Glorfindel

Reputation: 22631

No, there are no security reasons for this, as the data stored is the same (just a different format). However, there are practical reasons: it is much easier to compare a Base64 string in your database with one from a log file, for example. This helps with debugging.

Upvotes: 1

Related Questions