0

I want to store an hashed 64 bytes password contained inside a BigInteger into an SQL database.

Which of these metohods should I use? Does it matter?

Alex Sim
  • 403
  • 3
  • 16

1 Answers1

0

I am not completely sure what you are trying to do, but if I understood correctly you want to hash the PW form the DB and store it locally. This is what I have used before, and considering the @erickson explained it pretty clearly just give it a peak if THIS is what you are trying to do. Good luck :)

Mr.Fabulous
  • 116
  • 8
  • Edited my question, it probably was a bit ambiguous. Anyway I already managed to hash and store the password inside a BigInteger (and gave it a 64 bytes size); now I want to store it in an SQL Database – Alex Sim May 16 '18 at 08:20
  • Didn't see the title -> setBinaryStream will use memory buffering to read the stream and send a block at a time to the server and this can be useful if the data is really big, but in your case I would go with setBytes because you are already have all the 64 bytes of data in your memory, just push it. – Mr.Fabulous May 16 '18 at 09:16