Package uk.co.sculptor.kflibjava
Class SHS
java.lang.Object
uk.co.sculptor.kflibjava.SHS
Class that deals with the Secure Hash Standard Algorithms
- Author:
- Marcos Gutierrez Batz
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
encryptPassword
(SHS.HashAlgorithm algorithm, byte[] org) Encrypt a string using the default password seed.
-
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.
-