The Laws of Cryptography:
Java Code for AES Encryption

by Neal R. Wagner

Copyright © 2001 by Neal R. Wagner. All rights reserved.

NOTE: This site is obsolete. See book draft (in PDF):

The class AESencrypt provides all the principle functions for the AES encryption algorithm:

The class Tables gives access to computed tables and utility functions:

The class GetBytes just reads bytes represented as Ascii hex characters (not in binary):

The class Copy copies arrays back and forth for the AES:

The class Print prints 1-and 2-dimensional arrays of bytes for debugging:

The class AEStest is a driver for testing encryption:


Revision date: 2002-01-24. (Please use ISO 8601, the International Standard.)