Store bytes instead of string encoded in hexa./base64 #17

Closed
tredoe opened this Issue Jul 23, 2009 · 2 comments

Comments

Projects
None yet
2 participants
@tredoe

tredoe commented Jul 23, 2009

  • The salt is being saved in base64 getting 22 chars but If it's stored as bytes strings it were only 16 chars. The difference is very great when you have 100K o 1M of users.
  • The same happens with the hashes which are being saved in hexadecimal, althought the difference is a lot of great.

Digest::SHA512.hexdigest => 128 chars.

instead of

Digest::SHA512.digest => 64 chars.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jan 19, 2010

I see what you're saying. I'll try to include this with v3. The problem is that I need to this to be backwards compatible. I'll work it out. Thanks for the tip.

ghost commented Jan 19, 2010

I see what you're saying. I'll try to include this with v3. The problem is that I need to this to be backwards compatible. I'll work it out. Thanks for the tip.

@jaredbeck

This comment has been minimized.

Show comment
Hide comment
@jaredbeck

jaredbeck Dec 2, 2016

Collaborator

Closing after six years with no activity. If this is still a problem, please let us know.

Collaborator

jaredbeck commented Dec 2, 2016

Closing after six years with no activity. If this is still a problem, please let us know.

@jaredbeck jaredbeck closed this Dec 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment