Class SHS

java.lang.Object
uk.co.sculptor.kflibjava.SHS

public final class SHS extends Object
Class that deals with the Secure Hash Standard Algorithms
Author:
Marcos Gutierrez Batz
  • Method Details

    • encryptPassword

      public static byte[] encryptPassword(SHS.HashAlgorithm algorithm, byte[] org) throws NoSuchAlgorithmException
      Encrypt a string using the default password seed.
      Parameters:
      algorithm - Specifies the encryption algorithm to be used.
      org - Original byte array to encrypt.
      Returns:
      the encrypted org byte array using the default password seed.
      Throws:
      NoSuchAlgorithmException - When the encryption algorithm implementation cannot be loaded.