Klasse UuidHasher

java.lang.Object
de.srsoftware.tools.UuidHasher
Alle implementierten Schnittstellen:
PasswordHasher<String>

public class UuidHasher extends Object implements PasswordHasher<String>
A password hasher that uses uuids as salt
  • Konstruktordetails

  • Methodendetails

    • hash

      public String hash(String password, String uuid)
      Beschreibung aus Schnittstelle kopiert: PasswordHasher
      hashes a password using a second input as salt
      Angegeben von:
      hash in Schnittstelle PasswordHasher<String>
      Parameter:
      password - the password to process
      uuid - the salt added to the password
      Gibt zurück:
      the hased password
    • salt

      public String salt(String hashedPassword)
      Beschreibung aus Schnittstelle kopiert: PasswordHasher
      return the salt part of a given hashed password
      Angegeben von:
      salt in Schnittstelle PasswordHasher<String>
      Parameter:
      hashedPassword - the hashed password to tokenize
      Gibt zurück:
      the salt extracted from the password