SecureUtil
Introduction
SecureUtil
primarily focuses on providing shortcuts for commonly used encryption algorithms and providing quick tool methods for key generation.
Method Introduction
Symmetric Encryption
SecureUtil.aes
SecureUtil.des
Hash Algorithms
SecureUtil.md5
SecureUtil.sha1
SecureUtil.hmac
SecureUtil.hmacMd5
SecureUtil.hmacSha1
Asymmetric Encryption
SecureUtil.rsa
SecureUtil.dsa
UUID
SecureUtil.simpleUUID
method provides a UUID without hyphens.
Key Generation
SecureUtil.generateKey
generates a key for symmetric encryption.SecureUtil.generateKeyPair
generates a key pair (used for asymmetric encryption).SecureUtil.generateSignature
generates a signature (used for asymmetric encryption).
Other methods are specific to certain encryption methods and are related to key generation and signature generation. Please refer to the API documentation for details.