Skip to content

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

kless opened this Issue Jul 23, 2009 · 1 comment

1 participant

kless 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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.