public class SimpleEncryptor extends Object implements de.alpharogroup.crypto.api.StringEncryptor, de.alpharogroup.crypto.api.Cryptor
SimpleEncryptor is a simple StringEncryptor implementation.| Constructor and Description |
|---|
SimpleEncryptor(String privateKey)
Instantiates a new
SimpleEncryptor with the given private key. |
public SimpleEncryptor(String privateKey)
SimpleEncryptor with the given private key.privateKey - The private key.public String encrypt(String string) throws UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException, InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException
encrypt in interface de.alpharogroup.crypto.api.Encryptor<String,String>UnsupportedEncodingExceptionIllegalBlockSizeExceptionBadPaddingExceptionInvalidKeyExceptionNoSuchAlgorithmExceptionInvalidKeySpecExceptionNoSuchPaddingExceptionInvalidAlgorithmParameterExceptionpublic int newOperationMode()
newOperationMode in interface de.alpharogroup.crypto.api.CryptorCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.