Package org.apache.commons.crypto.utils
Class AES
java.lang.Object
org.apache.commons.crypto.utils.AES
Creates AES objects
- Since:
- 1.2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretKeySpec
newSecretKeySpec
(byte[] key) Creates a new SecretKeySpec for the given key andALGORITHM
.
-
Field Details
-
ALGORITHM
The AES algorithm name.- See Also:
-
CBC_NO_PADDING
Defines "AES/CBC/NoPadding".- See Also:
-
CBC_PKCS5_PADDING
Defines "AES/CBC/PKCS5Padding".- See Also:
-
CTR_NO_PADDING
Defines "AES/CTR/NoPadding".- See Also:
-
-
Constructor Details
-
AES
public AES()
-
-
Method Details
-
newSecretKeySpec
Creates a new SecretKeySpec for the given key andALGORITHM
.- Parameters:
key
- a key.- Returns:
- a new SecretKeySpec.
-