Skip navigation links
A B C D E G H I J M N P S T U V 

A

AsymmetricAlgorithm - Enum in net.blackhacker.crypto.algorithm
Represents each of the supported asymetric algorithms

B

bitsToBytes(int) - Static method in class net.blackhacker.crypto.Utils
Calculates the number of bytes needed to contain a given number of bits.

C

concat(byte[]...) - Static method in class net.blackhacker.crypto.Utils
Concatenates multiple byte arrays into a single target
COULDNT_CREATE_CIPHER_MSG_FMT - Static variable in class net.blackhacker.crypto.Strings
 
COULDNT_CREATE_KEY_FACT_MSG_FMT - Static variable in class net.blackhacker.crypto.Strings
 
COULDNT_CREATE_KEY_SPEC_MSG_FMT - Static variable in class net.blackhacker.crypto.Strings
 
COULDNT_CREATE_PARAM_SPEC_MSG_FMT - Static variable in class net.blackhacker.crypto.Strings
 
COULDNT_DECRYPT_MSG_FMT - Static variable in class net.blackhacker.crypto.Strings
 
COULDNT_ENCRYPT_MSG_FMT - Static variable in class net.blackhacker.crypto.Strings
 
Crypto - Class in net.blackhacker.crypto
Abstract base class for both symmetric and asymmetric encryption algorithms
Crypto(Transformation, Object...) - Constructor for class net.blackhacker.crypto.Crypto
Constructor
CryptoException - Exception in net.blackhacker.crypto
 
CryptoException() - Constructor for exception net.blackhacker.crypto.CryptoException
 
CryptoException(String, Throwable, boolean, boolean) - Constructor for exception net.blackhacker.crypto.CryptoException
 
CryptoException(String, Throwable) - Constructor for exception net.blackhacker.crypto.CryptoException
 
CryptoException(String) - Constructor for exception net.blackhacker.crypto.CryptoException
 
CryptoException(Throwable) - Constructor for exception net.blackhacker.crypto.CryptoException
 
CryptoFactory - Class in net.blackhacker.crypto
 
CryptoFactory() - Constructor for class net.blackhacker.crypto.CryptoFactory
 

D

decrypt(byte[]) - Method in interface net.blackhacker.crypto.Decryptor
Decrypts encrypted bytes and returns the value in the clear
decrypt(byte[]) - Method in class net.blackhacker.crypto.PK
Decrypts array of bytes
decrypt(byte[]) - Method in class net.blackhacker.crypto.SK
Decrypts an encrypted byte array
Decryptor - Interface in net.blackhacker.crypto
Implemented by all classes that decrypt encrypted bytes
DEFAULT_DIGESTER - Static variable in class net.blackhacker.crypto.PK
 
digest(byte[]) - Method in interface net.blackhacker.crypto.Digester
Returns an digest of the given byte array
digest(byte[]) - Method in class net.blackhacker.crypto.DigesterBase
 
DigestAlgorithm - Enum in net.blackhacker.crypto.algorithm
All supported Digest Algorithms
Digester - Interface in net.blackhacker.crypto
 
DigesterBase - Class in net.blackhacker.crypto
 
DigesterBase(DigestAlgorithm) - Constructor for class net.blackhacker.crypto.DigesterBase
Constructor
DigesterException - Exception in net.blackhacker.crypto
 
DigesterException() - Constructor for exception net.blackhacker.crypto.DigesterException
 
DigesterException(String) - Constructor for exception net.blackhacker.crypto.DigesterException
 
DigesterException(Throwable) - Constructor for exception net.blackhacker.crypto.DigesterException
 
DigesterException(String, Throwable) - Constructor for exception net.blackhacker.crypto.DigesterException
 
DigesterFactory - Class in net.blackhacker.crypto
 
DigesterFactory() - Constructor for class net.blackhacker.crypto.DigesterFactory
 

E

encrypt(byte[]) - Method in interface net.blackhacker.crypto.Encryptor
Must be implemented by subclass
encrypt(byte[]) - Method in class net.blackhacker.crypto.PK
Encrypts array of bytes
encrypt(byte[]) - Method in class net.blackhacker.crypto.SK
encrypts byte arrays
Encryptor - Interface in net.blackhacker.crypto
 

G

generateIV() - Method in class net.blackhacker.crypto.Crypto
Generates a new Initialization Vector (IV) and stores it internally
generateSalt() - Method in class net.blackhacker.crypto.Crypto
Randomly generates salt bytes
getAlgorithmString() - Method in class net.blackhacker.crypto.Transformation
Algorithm String
getAlgorParamSpecClass() - Method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
 
getBlockSize() - Method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
Size of block in bits
getBlockSize() - Method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
Size of block in bits
getBlockSize() - Method in class net.blackhacker.crypto.Transformation
Block size in bits
getBlockSizeBytes() - Method in class net.blackhacker.crypto.Crypto
Returns the block size for the algorithm described in the internal Transformation
getBlockSizeBytes() - Method in class net.blackhacker.crypto.Transformation
Block size in bytes
getCipher() - Method in class net.blackhacker.crypto.Crypto
The internal Cipher object
getClasses(Object...) - Static method in class net.blackhacker.crypto.Utils
Returns an array of Class objects for the parameters given
getDigestAlgorithm() - Method in class net.blackhacker.crypto.Transformation
 
getKey() - Method in class net.blackhacker.crypto.SK
Key object used to encrypt and decrypt messages
getKeyEncoded() - Method in class net.blackhacker.crypto.SK
Key encoded as an array of bytes
getKeySize() - Method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
The size of key in bits
getKeySize() - Method in class net.blackhacker.crypto.Transformation
 
getKeySpecClass() - Method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
 
getParameters() - Method in class net.blackhacker.crypto.Crypto
 
getPrivateKey() - Method in class net.blackhacker.crypto.PK
Gets internal PrivateKey object
getPrivateKeyEncoded() - Method in class net.blackhacker.crypto.PK
PrivateKey encoded into a byte array
getPrivateKeySpecClass() - Method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
 
getPublicKey() - Method in class net.blackhacker.crypto.PK
Gets internal PubicKey object
getPublicKeyEncoded() - Method in class net.blackhacker.crypto.PK
PublicKey encoded into a byte array
getPublicKeySpecClass() - Method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
 
getSaltSize() - Method in enum net.blackhacker.crypto.algorithm.DigestAlgorithm
 
getSaltSizeBytes() - Method in enum net.blackhacker.crypto.algorithm.DigestAlgorithm
 
getSaltSizeBytes() - Method in class net.blackhacker.crypto.Transformation
Randomly generates salt bytes
getSecureRandom() - Method in class net.blackhacker.crypto.Crypto
The internal SecureRandom
getSigner() - Method in class net.blackhacker.crypto.PK
Builds a new Signer based on this PK object and the DEAULT_DIGESTER
getSigner(Digester) - Method in class net.blackhacker.crypto.PK
Builds a new Signer based on this PK object and the given Digester
getSymmetricAlgorithm() - Method in class net.blackhacker.crypto.Transformation
 
getTransformation() - Method in class net.blackhacker.crypto.Crypto
Transformation
getTransformationName() - Method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
 
getVerifier() - Method in class net.blackhacker.crypto.PK
Builds a new Verifier based on this PK object and the DEFAULT_DIGESTER
getVerifier(Digester) - Method in class net.blackhacker.crypto.PK
Builds a new Verifier based on this PK object and the given Digester

H

hasIV() - Method in enum net.blackhacker.crypto.algorithm.Mode
True if this mode uses an Initialization Vector (IV), false otherwise
hasIV() - Method in class net.blackhacker.crypto.Crypto
Returns true if the Mode uses an Initialization Vector (IV), otherwise false
hasIV() - Method in class net.blackhacker.crypto.Transformation
Returns true if the mode uses an Initialization Vector (IV)
hasParameters() - Method in class net.blackhacker.crypto.Crypto
 

I

isA(Object, Class, String) - Static method in class net.blackhacker.crypto.Validator
 
isAsymetric() - Method in class net.blackhacker.crypto.Crypto
Returns true if this object represents an asymmetric algorithm
isAsymmetric() - Method in class net.blackhacker.crypto.Transformation
Returns true if this Transformation describes an Asymmetric Algorithm
isFalse(boolean, String) - Static method in class net.blackhacker.crypto.Validator
 
isPBE() - Method in class net.blackhacker.crypto.Crypto
Returns true if the Transformation describes a Password Based Encryption (PBE)
isPBE() - Method in class net.blackhacker.crypto.Transformation
Returns true if this Transformation describes a Password Based Encryption (PBE)
isSymmetric() - Method in class net.blackhacker.crypto.Transformation
Returns true is this is Transformation describes a Symmetric
isTrue(boolean, String) - Static method in class net.blackhacker.crypto.Validator
 

J

jce() - Static method in class net.blackhacker.crypto.Utils
Returns true if Java Encryption Extension (JCE) is installed

M

makeKeySpec(Object...) - Method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
Creates new KeySpec based on internal keySpecClass and the given parameters
makeKeySpec(Object...) - Method in class net.blackhacker.crypto.Crypto
 
makeKeySpec(Object...) - Method in class net.blackhacker.crypto.Transformation
 
makeParameterSpec(Object...) - Method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
Instantiates new AlgorithmParameterSpec from internal AlgorithmParameterSpec class object and the given parameters
makeParameterSpec(Object...) - Method in class net.blackhacker.crypto.Crypto
Builds AlgorithmParameterSpec based on the Transformation and the parameters are passed in
makeParameterSpec(Object...) - Method in class net.blackhacker.crypto.Transformation
Builds AlgorithmParameterSpec based on the this Transformation object and the parameters passed in
makePrivateKeySpec(Object...) - Method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
Builds a KeySpec for a PrivateKey based THIS and the parameters given
makePrivateKeySpec(Object...) - Method in class net.blackhacker.crypto.Transformation
 
makePublicKeySpec(Object...) - Method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
Builds a KeySpec for a PubliceKey based THIS and the parameters given
makePublicKeySpec(Object...) - Method in class net.blackhacker.crypto.Transformation
 
Mode - Enum in net.blackhacker.crypto.algorithm
Supported Modes

N

net.blackhacker.crypto - package net.blackhacker.crypto
 
net.blackhacker.crypto.algorithm - package net.blackhacker.crypto.algorithm
 
newDigesterMD5() - Static method in class net.blackhacker.crypto.DigesterFactory
Factory method that builds Digester object using the MD5 algorithm
newDigesterSHA256() - Static method in class net.blackhacker.crypto.DigesterFactory
Factory method that builds Digester object using the SHA-256 algorithm
newEncryptorAES128WithCBC() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CBC mode
newEncryptorAES128WithCBC(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CBC mode from encoded key with the given IV
newEncryptorAES128WithCFB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CBC mode from encoded key with the given IV
newEncryptorAES128WithCFB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CFB mode with the given IV
newEncryptorAES128WithCTR(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CTR mode from encoded key with the given IV
newEncryptorAES128WithCTR() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CTR mode from encoded key with the given IV
newEncryptorAES128WithECB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm from encoded key in CFB mode
newEncryptorAES128WithECB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm
newEncryptorAES128WithOCB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in OCB mode from encoded key with the given IV
newEncryptorAES128WithOCB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in OCB mode from encoded key
newEncryptorAES128WithOFB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in OFB mode from encoded key with the given IV
newEncryptorAES128WithOFB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in OFB mode
newEncryptorAES192WithCBC() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CBC mode with the given IV
newEncryptorAES192WithCBC(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in CBC mode from encoded key with the given IV
newEncryptorAES192WithECB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in ECB mode from encoded key
newEncryptorAES192WithECB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using AES algorithm in ECB mode from encoded key with the given IV
newEncryptorDESedeWithCBC() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm in CBC mode with the given IV
newEncryptorDESedeWithCBC(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm from encoded key in CBS mode with the given IV
newEncryptorDESedeWithCFB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm in CFB mode with the given IV
newEncryptorDESedeWithCFB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm from encoded key in CFB mode with the given IV
newEncryptorDESedeWithECB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm in ECB mode
newEncryptorDESedeWithECB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm from encoded key in ECB mode
newEncryptorDESedeWithOFB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm in OFB mode with the given IV
newEncryptorDESedeWithOFB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using Triple DES algorithm from encoded key in OFB mode with the given IV
newEncryptorDESWithCBC() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for generating an SK object using DES algorithm in CBC mode with the given IV
newEncryptorDESWithCBC(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for generating an SK object using DES algorithm in CBC mode with the given IV
newEncryptorDESWithCFB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for generating an SK object using DES algorithm in CFB mode
newEncryptorDESWithCFB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for generating an SK object using DES algorithm in CFB mode
newEncryptorDESWithECB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for generating SK object using DES algorithm in ECB mode
newEncryptorDESWithECB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building SK object from encoded key using DES algorithm in ECB mode
newEncryptorDESWithOFB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using DES algorithm in OFB mode
newEncryptorDESWithOFB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building an SK object using DES algorithm in OFB mode
newEncryptorPBEWithMD5AndDES(String) - Static method in class net.blackhacker.crypto.CryptoFactory
Builds a new Password Based Encryption (PBE) enabled SK object based on the given password
newEncryptorPBEWithMD5AndTripleDES(String) - Static method in class net.blackhacker.crypto.CryptoFactory
Builds a new Password Based Encryption (PBE) enabled SK object based on the given password
newEncryptorPBEWithSHA1AndDESede(String) - Static method in class net.blackhacker.crypto.CryptoFactory
Builds a new Password Based Encryption (PBE) enabled SK object based on the given password
newEncryptorPBEWithSHA256And256BitAES(String) - Static method in class net.blackhacker.crypto.CryptoFactory
Builds a new Password Based Encryption (PBE) enabled SK object based on the given password
newEncryptorPBEWithSHAAnd3KeyTripleDES(String) - Static method in class net.blackhacker.crypto.CryptoFactory
Builds a new Password Based Encryption (PBE) enabled SK object based on the given password
newEncryptorRSAWithECB() - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for generating PK object using RSA
newEncryptorRSAWithECB(byte[], byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building PK object from public and private keys using RSA
newEncryptorRSAWithECB(byte[]) - Static method in class net.blackhacker.crypto.CryptoFactory
Factory method for building PK object from public keys using RSA
NON_PBE_MSG - Static variable in class net.blackhacker.crypto.Strings
 
NOT_ASYMETRIC_MSG - Static variable in class net.blackhacker.crypto.Strings
 
NOT_NULL_MSG_FMT - Static variable in class net.blackhacker.crypto.Strings
 
NOT_SYMETRIC_MSG - Static variable in class net.blackhacker.crypto.Strings
 
notNull(Object, String) - Static method in class net.blackhacker.crypto.Validator
 

P

Padding - Enum in net.blackhacker.crypto.algorithm
Padding algorithms supported
PBE_MSG - Static variable in class net.blackhacker.crypto.Strings
 
PK - Class in net.blackhacker.crypto
Base class for all implementations of Asymmetric (Public Key) Encryption
PK(Transformation, byte[], byte[]) - Constructor for class net.blackhacker.crypto.PK
Constructor initializes from from the encoded keys
PK(Transformation, byte[]) - Constructor for class net.blackhacker.crypto.PK
Initializes from an encoded public key.
PK(Transformation) - Constructor for class net.blackhacker.crypto.PK
Constructor build public and private keys from the parameterSpec, and the encoded keys

S

SHOULD_BE_A - Static variable in class net.blackhacker.crypto.Strings
 
sign(byte[]) - Method in interface net.blackhacker.crypto.Signer
Signs given object
Signer - Interface in net.blackhacker.crypto
 
SignerException - Exception in net.blackhacker.crypto
 
SignerException() - Constructor for exception net.blackhacker.crypto.SignerException
 
SignerException(String) - Constructor for exception net.blackhacker.crypto.SignerException
 
SignerException(String, Throwable) - Constructor for exception net.blackhacker.crypto.SignerException
 
SK - Class in net.blackhacker.crypto
Object that implements for class for Symmetric or SecretKey algorithms
SK(Transformation, Object...) - Constructor for class net.blackhacker.crypto.SK
 
split(byte[], byte[]...) - Static method in class net.blackhacker.crypto.Utils
Reverse of the concat method, it copies the contents of one byte array to multiple arrays
Strings - Class in net.blackhacker.crypto
Messages and message formats
Strings() - Constructor for class net.blackhacker.crypto.Strings
 
SymmetricAlgorithm - Enum in net.blackhacker.crypto.algorithm
Represents each of the supported symetric algorithms

T

toBytes(int) - Static method in class net.blackhacker.crypto.Utils
Converts integer to a byte array
toInt(byte[]) - Static method in class net.blackhacker.crypto.Utils
Reads bytes from an array and converts them to an integer
toString() - Method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
 
toString() - Method in class net.blackhacker.crypto.Transformation
 
Transformation - Class in net.blackhacker.crypto
Holds the information about the Algorithm, mode and Padding used to initialize a cipher
Transformation(SymmetricAlgorithm, Mode) - Constructor for class net.blackhacker.crypto.Transformation
 
Transformation(DigestAlgorithm, SymmetricAlgorithm) - Constructor for class net.blackhacker.crypto.Transformation
 
Transformation(AsymmetricAlgorithm, Mode) - Constructor for class net.blackhacker.crypto.Transformation
 
Transformation(AsymmetricAlgorithm, Mode, Padding) - Constructor for class net.blackhacker.crypto.Transformation
 

U

Utils - Class in net.blackhacker.crypto
 
Utils() - Constructor for class net.blackhacker.crypto.Utils
 

V

Validator - Class in net.blackhacker.crypto
 
Validator() - Constructor for class net.blackhacker.crypto.Validator
 
valueOf(String) - Static method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.blackhacker.crypto.algorithm.DigestAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.blackhacker.crypto.algorithm.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.blackhacker.crypto.algorithm.Padding
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.blackhacker.crypto.algorithm.AsymmetricAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.blackhacker.crypto.algorithm.DigestAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.blackhacker.crypto.algorithm.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.blackhacker.crypto.algorithm.Padding
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.blackhacker.crypto.algorithm.SymmetricAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
Verifier - Interface in net.blackhacker.crypto
 
verify(byte[], byte[]) - Method in interface net.blackhacker.crypto.Verifier
Verifies that the given signature of the given data was created by the internally stored key(s)
A B C D E G H I J M N P S T U V 
Skip navigation links

Copyright © 2017. All rights reserved.