Home  >  Q&A  >  body text

Java64 byte salt, how to define database fields?

What type of salt is used for storage in actual business? char?blob?
The 64-byte salt is base64-encoded to generate an 88-bit Is it reasonable to store the string in the database? In this case, the salt field is too long. Is there a better way to encode the salt and store it?

某草草某草草2667 days ago971

reply all(1)I'll reply

  • 習慣沉默

    習慣沉默2017-06-30 09:58:00

    mysql has blob type, which can directly store binary data

    reply
    0
  • Cancelreply