IllegalBlockSizeException thrown from .NET dll: msg#00024

'DES Algorithm - Java Implementation in JDK JCE' tutorial book was cited in a Digital Point forum post in 2007.

The DES Algorithm - Java Implementation in JDK JCE tutorial book was cited in a Digital Point forum post in 2007.

Subject: IllegalBlockSizeException thrown from .NET dll: msg#00024
Date: Oct 24, 2007
Author: Jeroen Frijters
Source: http://osdir.com/ml/java.ikvm.devel/2007-10/msg00024.html

This worked for me. Thanks a ton.

Jeroen Frijters <jeroen@xxxxxxxxxx> wrote:

 DES is a block cipher so it needs
 padding if the plain text isn't an exact multiple of the block size.
 Apparently Sun has a default padding scheme, but IcedTea doesn't. As
 a workaround you can explicitly specify a padding:

 Cipher ecipher = Cipher.getInstance("DES/ECB/PKCS5Padding");

 According to https://www.herongyang.com/crypto
 /des_java_jce_sun_implementation_3.html this is the same as what
 "DES" gives you on the SunJCE.

 Regards,
 Jeroen

 > -----Original Message-----
 > From: ikvm-developers-bounces@xxxxxxxxxxxxxxxxxx [mailto:ikvm-
 > developers-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Swetha Sivaram
 > Sent: Wednesday, October 24, 2007 10:51
 > To: ikvm-developers@xxxxxxxxxxxxxxxxxxxxx
 > Subject: [Ikvm-developers] IllegalBlockSizeException thrown from
 > .NET dll
 >
 > I have the following piece of code as part of my .jar file which is
 > then compiled into a .NET dll using IKVM. The code runs fine when
 > run as a jar but on using the .NET dll I receive an
 > IllegalBlockSizeException with the message - 1 trailing bytes.

Table of Contents

 About This Book

 Reference Citations in 2023

 Reference Citations in 2022

 Reference Citations in 2021

 Reference Citations in 2020

 Reference Citations in 2019

 Reference Citations in 2018

 Reference Citations in 2017

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

Reference Citations in 2007

 PHP 5 Soap Client - Format of Request

IllegalBlockSizeException thrown from .NET dll: msg#00024

 Encoding problem with MySQL

 How can I view the Chinese data in my database?

 JSTL custom tags

 Trying to run forEach

 Hvor "sikker" er adgangskontrol med htaccess?

 How to add DTD syntax line into XML using java code

 Configure soap trên PHP

 how to update garbled characters

 Clr UDT Serialization

 PHP Sessions Timing Out

 "Out-of-left-field" question for any ASP/VBScript Gurus

 soapclient

 Trying SOAP and PHP with no luck?

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003