List of usage examples for org.bouncycastle.crypto.modes PaddedBlockCipher PaddedBlockCipher
public PaddedBlockCipher(BlockCipher cipher)
From source file:crypto.util.encription.Crypto.java
public Crypto(byte[] key) { /*/*from w w w . java 2 s.c om*/ cipher = new PaddedBlockCipher( new CBCBlockCipher( new DESEngine() ) ); */ cipher = new PaddedBlockCipher(new CBCBlockCipher(new BlowfishEngine())); this.key = new KeyParameter(key); }
From source file:org.mkdev.ut.Encryptor.java
License:GNU General Public License
public Encryptor(byte[] key) { /*/*w w w . j a v a 2 s . c o m*/ cipher = new PaddedBlockCipher( new CBCBlockCipher( new DESEngine() ) ); */ cipher = new PaddedBlockCipher(new CBCBlockCipher(new BlowfishEngine())); this.key = new KeyParameter(key); }