Common

Date Handing

Reflection

IO

Cryptography

Misc.

Cryptography

AJ Util wraps JCA/JCE with explicit keys and per-operation inputs. Current source replaces the former monolithic Cryptography and rsa.KeyMgr APIs; the existing documentation URLs are retained for bookmarks.

Package Current APIs Use
com.ajaxjs.util.cryptography DoCipher, CipherResult, SecretKeyMgr, CertificateUtils Generic cipher operations, encodings, symmetric keys, certificate parsing
com.ajaxjs.util.cryptography.aes AesGcm, AesCbc, AesPbe, AesLegacy, AesCipherResult Authenticated encryption, compatibility modes, password-derived keys
com.ajaxjs.util.cryptography.rsa Rsa, DoSignature, DoVerify, RestoreKey, PemUtils Small-value RSA-OAEP, signatures, key restoration and PEM encoding

Read cipher flow and key handling, AES/PBE and RSA, PEM and certificates.

Dependency and evidence

Current aj-util/pom.xml coordinates (not a claim of latest published version), Java 8 baseline:

<dependency>
    <groupId>com.ajaxjs</groupId>
    <artifactId>ajaxjs-util</artifactId>
    <version>1.3.8</version>
</dependency>

Source and tests under aj-util/src/test/java/com/ajaxjs/util/cryptography/ are the authority. Relevant tests include TestDoCipher, TestCipherResult, TestSecretKeyMgr, aes/TestAes, aes/TestAesCipherResult, rsa/TestRsa, rsa/TestVerify, rsa/TestPemUtils and rsa/TestRestoreKey. Round trips are not a security audit; provider support and deployed JDK policy still matter.