Pages

Thursday, September 22, 2011

AES and Java: Part the Third

So, in review, I needed to be able to encrypt a string using AES.

  • I started with a simple test to see if I could get the original string back after encrypting it.
  • The next step was to actually try hooking up the Java Cryptography classes to do the heavy lifting.
  • In this installment I'll clean up my current solution and extend it just a bit to be more generally useful.

Wednesday, September 21, 2011

JCE Exploration Part 2

As I explained in my prior post I'm trying to figure out how to use the Java Cryptography classes to encrypt a string using AES.

I have a little test that passes but doesn't actually do any encryption. How shall I proceed?

A little excursion into JCE

I had an occasion to explore a bit of Java that I've never dealt with before: the Java Cryptography Extensions (as of Java 1.4 these are part of the Java distribution). The problem at hand required being able to encrypt a string using the Rijndael algorithm (AES).