Class EncryptionUtil

java.lang.Object
io.trino.plugin.password.file.EncryptionUtil

public final class EncryptionUtil extends Object
  • Method Details

    • getBCryptCost

      public static int getBCryptCost(String password)
    • getPBKDF2Iterations

      public static int getPBKDF2Iterations(String password)
    • doesBCryptPasswordMatch

      public static boolean doesBCryptPasswordMatch(String inputPassword, String hashedPassword)
    • doesPBKDF2PasswordMatch

      public static boolean doesPBKDF2PasswordMatch(String inputPassword, String hashedPassword)
    • getHashingAlgorithm

      public static HashingAlgorithm getHashingAlgorithm(String password)