Skip to main content
edited tags
Link
kelalaka
  • 49.5k
  • 12
  • 118
  • 205
more clear
Source Link
Evan Su
  • 469
  • 1
  • 5
  • 16

Do I need an IVa salt for Scrypt if the data is client-side?

Is it safe to use no IVI have a web app, or the same IV for scryptin which I am encrypting user data client side. Each client has their own password, ifwhich is used to derive an encryption key (via Scrypt) for encrypting their data. Since the encrypted data is readily available toclient side and a hacker has full access to the (encrypted) data, would it be necessary to use a salt for Scrypt? The only timereason why we use IVs is for a web login systemsalt for KDFs is to preventreduce rainbow tables, right? affecting web servers. Since the datathere is client side and thereforeno web server in play here, and the hacker's handsattacker can attack however they like, is therethen a need to use an IVsalt would provide no additional benefit, am I correct?

Do I need an IV for Scrypt if data is client-side?

Is it safe to use no IV, or the same IV for scrypt, if the encrypted data is readily available to a hacker? The only time we use IVs is for a web login system to prevent rainbow tables, right? Since the data is client side and therefore in the hacker's hands, is there a need to use an IV?

Do I need a salt for Scrypt if the data is client-side?

I have a web app, in which I am encrypting user data client side. Each client has their own password, which is used to derive an encryption key (via Scrypt) for encrypting their data. Since the data is client side and a hacker has full access to the (encrypted) data, would it be necessary to use a salt for Scrypt? The reason why we use a salt for KDFs is to reduce rainbow tables affecting web servers. Since there is no web server in play here, and the attacker can attack however they like, then a salt would provide no additional benefit, am I correct?

tags
Link
kelalaka
  • 49.5k
  • 12
  • 118
  • 205
Source Link
Evan Su
  • 469
  • 1
  • 5
  • 16
Loading