Code example for Cipher

Methods: getBlockSize

0
     * 
     * 
     * @return 
     */ 
    public int getBlockSize() { 
        return cipher.getBlockSize();
    } 
 
    /** 
     * 
     * 
     * @param mode 
     * @param iv 
     * @param keydata 
     * 
     * @throws AlgorithmOperationException 
     */ 
    public void init(int mode, byte[] iv, byte[] keydata)
        throws AlgorithmOperationException { 
        try { 
            cipher = Cipher.getInstance("Blowfish/CBC/NoPadding");