Java Cipher - AES Padding Problem?

It should work exactly the same with AES, i.e. The padding mode has to be specified together with the cipher. Which padding modes are implemented depends on the provider and should be described in its documentation.

It should work exactly the same with AES, i.e. The padding mode has to be specified together with the cipher. Which padding modes are implemented depends on the provider and should be described in its documentation.

According to the JCE documentation: java.sun.com/j2se/1.5.0/docs/guide/secur... standard padding modes like PKCS5Padding should be always supported (at least, that's how I interpret it).

I will check the docs for that. – Ciaran Archer Dec 5 '08 at 8:02 Yes, the provider (the second parameter in the getInstance() method) basically implements the Cipher interface. You can have more than one cryptography provider active.

Sun's JDK comes with the SunJCE provider pre-installed – Michael Borgwardt Dec 5 '08 at 9:56 Since I was coding a 'proof of concept' of the AES through Java/Coldfusion, I implemented my own padding using method 2 described here: di-mgt.com. Au/cryptopad.html. I might take a closer look for the real thing.

I'll mark this as the answer though. – Ciaran Archer Dec 5 '08 at 16:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions