Module cloud.opencode.base.crypto
module cloud.opencode.base.crypto
OpenCode Base Crypto Module
OpenCode 基础加密模块
Provides modern cryptographic utilities based on JDK 25 and BouncyCastle, including symmetric/asymmetric encryption, hashing, digital signatures, JWT, key management, and PGP support.
提供基于 JDK 25 和 BouncyCastle 的现代密码学工具,包括对称/非对称加密、 哈希、数字签名、JWT、密钥管理和 PGP 支持。
Key Features | 主要功能:
- Symmetric Encryption (AES-GCM, ChaCha20) - 对称加密
- Asymmetric Encryption (RSA, EC) - 非对称加密
- Message Digest & MAC - 消息摘要与消息认证码
- Digital Signatures - 数字签名
- JWT (JSON Web Token) - JWT 令牌
- Key Derivation (PBKDF2, Argon2, scrypt) - 密钥派生
- Key Exchange (ECDH, X25519) - 密钥交换
- Password Hashing (BCrypt, Argon2) - 密码哈希
- PGP Encryption - PGP 加密
- Envelope Encryption - 信封加密
- Key Rotation - 密钥轮换
- Sealed Box (X25519+XSalsa20) - 密封盒
- Since:
- JDK 25, opencode-base-crypto V1.0.0
- Author:
- Leon Soo
- See Also:
-
Packages
ExportsPackageDescription