hunt.shiro.crypto.BlowfishCipherService

Undocumented in source.

Members

Classes

BlowfishCipherService
class BlowfishCipherService

{@code CipherService} using the {@code Blowfish} cipher algorithm for all encryption, decryption, and key operations. <p/> The Blowfish algorithm can support key sizes between {@code 32} and {@code 448} bits<b>*</b>, inclusive. However, modern cryptanalysis techniques render keys of 80 bits or less mostly worthless - use {@code 128} or more whenever possible. <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 Blowfish 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