com.codeheadsystems.crypto.Decrypter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crypto Show documentation
Show all versions of crypto Show documentation
A set of libraries that can be used to encrypt content securely.
package com.codeheadsystems.crypto;
import com.codeheadsystems.crypto.password.KeyParameterWrapper;
import com.codeheadsystems.crypto.password.SecretKeyExpiredException;
import org.bouncycastle.crypto.params.KeyParameter;
/**
* BSD-Style License 2016
*/
public interface Decrypter {
String decryptText(KeyParameterWrapper keyParameterWrapper, String encryptedText) throws CryptoException, SecretKeyExpiredException;
String decryptText(KeyParameterWrapper keyParameterWrapper, byte[] encryptedBytes) throws CryptoException, SecretKeyExpiredException;
byte[] decryptBytes(KeyParameterWrapper keyParameterWrapper, byte[] encryptedBytes) throws CryptoException, SecretKeyExpiredException;
String decryptText(KeyParameter keyParameter, String encryptedText) throws CryptoException;
String decryptText(KeyParameter keyParameter, byte[] encryptedBytes) throws CryptoException;
byte[] decryptBytes(KeyParameter keyParameter, byte[] encryptedBytes) throws CryptoException;
}