Registry / crypto / commons-crypto

commons-crypto

JSON →
library1.2.0javamavenunverified

High-performance cryptographic library optimized with AES-NI instructions, wrapping OpenSSL or JCE for AES encryption/decryption.

<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-crypto</artifactId> <version>1.2.0</version> </dependency>
INSTALL
IMPORT
SIG · COMMONS-CRYPTO
C
commons-crypto
cryptojavav1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CryptoCipher
org.apache.commons.crypto.cipher.CryptoCipher

Initializes an AES/CBC cipher for encryption using Commons Crypto.

import org.apache.commons.crypto.cipher.CryptoCipher; import javax.crypto.spec.SecretKeySpec; import javax.crypto.spec.IvParameterSpec; SecretKeySpec key = new SecretKeySpec(new byte[16], "AES"); IvParameterSpec iv = new IvParameterSpec(new byte[16]); CryptoCipher cipher = new CryptoCipher("AES/CBC/PKCS5Padding"); cipher.init(CryptoCipher.ENCRYPT_MODE, key, iv);
Debug
Known issues
gotchaNative library loading may fail on unsupported platforms (only Linux/Mac/Windows).
fix
Ensure the native library is available or fall back to JCE by setting system property 'org.apache.commons.crypto.cipher.CryptoCipherFactory.cipherClasses'.
affects: >=1.0.0
Upgrade
Version history
1.2.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Resources
commons-crypto — mvn dependency:get commons-crypto · libregistry