| Constructor and Description |
|---|
HexDecryptor(String privateKey)
Constructor with a private key.
|
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String encypted)
Decrypt the given encrypted String.
|
public HexDecryptor(String privateKey)
privateKey - The private key.public String decrypt(String encypted) throws InvalidKeyException, UnsupportedEncodingException, NoSuchAlgorithmException, NoSuchPaddingException, org.apache.commons.codec.DecoderException, IllegalBlockSizeException, BadPaddingException
decrypt in interface GenericDecryptor<String,String>encypted - The String to decrypt.UnsupportedEncodingException - is thrown by get the byte array of the private key String object fails.NoSuchAlgorithmException - is thrown if instantiation of the cypher object fails.NoSuchPaddingException - is thrown if instantiation of the cypher object fails.InvalidKeyException - the invalid key exception is thrown if initialization of the cypher object fails.org.apache.commons.codec.DecoderException - is thrown if an odd number or illegal of characters is suppliedIllegalBlockSizeException - is thrown if Cipher.doFinal(byte[]) fails.BadPaddingException - is thrown if Cipher.doFinal(byte[]) fails.Copyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.