| Package | Description |
|---|---|
| cz.d1x.dxcrypto.encryption |
| Modifier and Type | Method and Description |
|---|---|
static SymmetricCryptoAlgorithmBuilder |
EncryptionAlgorithms.aes(byte[] keyPassword)
Creates a new builder for AES encryption algorithm with these properties:
Type of cipher: Symmetric
Operation mode: Cipher Block Chaining (CBC)
Key size: 128 bits
Block size: 128 bits
Input padding: PKCS#5
Encryption key: PBKDF2 with HMAC-SHA1 for key derivation
You can provide salt and iterations count for PBKDF2.
|
static SymmetricCryptoAlgorithmBuilder |
EncryptionAlgorithms.aes(KeyFactory<Key> keyFactory)
Creates a new builder for AES encryption algorithm with these properties:
Type of cipher: Symmetric
Operation mode: Cipher Block Chaining (CBC)
Block size: 128 bits
Input padding: PKCS#5
Encryption key: based on given key factory
|
static SymmetricCryptoAlgorithmBuilder |
EncryptionAlgorithms.aes(String keyPassword)
Creates a new builder for AES encryption algorithm with these properties:
Type of cipher: Symmetric
Operation mode: Cipher Block Chaining (CBC)
Key size: 128 bits
Block size: 128 bits
Input padding: PKCS#5
Encryption key: PBKDF2 with HMAC-SHA1 for key derivation
You can provide salt and iterations count for PBKDF2.
|
SymmetricCryptoAlgorithmBuilder |
SymmetricCryptoAlgorithmBuilder.bytesRepresentation(BytesRepresentation bytesRepresentation)
Sets how byte arrays will be represented in strings.
|
SymmetricCryptoAlgorithmBuilder |
SymmetricCryptoAlgorithmBuilder.combineSplitAlgorithm(CombineSplitAlgorithm combineSplitAlgorithm)
Sets algorithm combining IV and cipher text in output during encryption
and splitting from input during decryption.
|
SymmetricCryptoAlgorithmBuilder |
SymmetricCryptoAlgorithmBuilder.encoding(String encoding)
Sets encoding for strings in input and output.
|
SymmetricCryptoAlgorithmBuilder |
SymmetricCryptoAlgorithmBuilder.keyHashIterations(int keyHashIterations)
Sets number of keyHashIterations of hashing for key derivation.
|
SymmetricCryptoAlgorithmBuilder |
SymmetricCryptoAlgorithmBuilder.keySalt(byte[] keySalt)
Sets salt for key derivation.
|
SymmetricCryptoAlgorithmBuilder |
SymmetricCryptoAlgorithmBuilder.keySalt(String keySalt)
Sets salt for key derivation.
|
static SymmetricCryptoAlgorithmBuilder |
EncryptionAlgorithms.tripleDes(byte[] keyPassword)
Creates a new builder for 3DES encryption algorithm with these properties:
Type of cipher: Symmetric
Operation mode: Cipher Block Chaining (CBC)
Key size: 192 bits
Block size: 64 bits
Input padding: PKCS#5
Encryption key: PBKDF2 with HMAC-SHA1 for key derivation (can be overridden)
You can provide salt and iterations count for PBKDF2.
|
static SymmetricCryptoAlgorithmBuilder |
EncryptionAlgorithms.tripleDes(KeyFactory<Key> keyFactory)
Crates a new builder for 3DES encryption algorithm with these properties:
Type of cipher: Symmetric
Operation mode: Cipher Block Chaining (CBC)
Block size: 64 bits
Input padding: PKCS#5
Encryption key: based on given key factory
|
static SymmetricCryptoAlgorithmBuilder |
EncryptionAlgorithms.tripleDes(String keyPassword)
Creates a new builder for 3DES encryption algorithm with these properties:
Type of cipher: Symmetric
Operation mode: Cipher Block Chaining (CBC)
Key size: 192 bits
Block size: 64 bits
Input padding: PKCS#5
Encryption key: PBKDF2 with HMAC-SHA1 for key derivation (can be overridden)
You can provide salt and iterations count for PBKDF2.
|
Copyright © 2016. All rights reserved.