Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
createPBKDF2shared JDBCHashStrategy createPBKDF2(Vertx vertx)

Implements a Hashing Strategy as per https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet (2018-01-17).

New deployments should use this strategy instead of the default one (which was the previous OWASP recommendation).

The work factor can be updated by using the nonces json array.

Parameters:
  • vertx

    the vert.x instance

createSHA512shared JDBCHashStrategy createSHA512(Vertx vertx)

This is the current backwards compatible hashing implementation, new applications should prefer the PBKDF2 implementation, unless the tradeoff between security and CPU usage is an option.

Parameters:
  • vertx

    the vert.x instance

isEqualshared Boolean isEqual(String hasha, String hashb)

Time constant string comparision to avoid timming attacks.

Parameters:
  • hasha

    hash a to compare

  • hashb

    hash b to compare

Inherited Methods
Methods inherited from: Object
equals