hunt.shiro.crypto.AesCipherService

Undocumented in source.

Members

Classes

AesCipherService
class AesCipherService

{@code CipherService} using the {@code AES} cipher algorithm for all encryption, decryption, and key operations. <p/> The AES algorithm can support key sizes of {@code 128}, {@code 192} and {@code 256} bits<b>*</b>. This implementation defaults to 128 bits. <p/> Note that this class retains the parent class's default {@link OperationMode#CBC CBC} mode of operation instead of the typical JDK default of {@link OperationMode#ECB ECB}. {@code ECB} should not be used in security-sensitive environments because {@code ECB} does not allow for initialization vectors, which are considered necessary for strong encryption. See the {@link DefaultBlockCipherService parent class}'s JavaDoc and the {@link JcaCipherService JcaCipherService} JavaDoc for more on why the JDK default should not be used and is not used in this implementation. <p/> <b>*</b> Generating and using AES key sizes greater than 128 require installation of the <a href="http://java.sun.com/javase/downloads/index.jsp">Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy files</a>.

Meta