I wrote a set of classes that make encrypting, decrypting, hashing, masking, and truncating data a little easier. I chose a generic design so that the API can be extended to include other, complex objects. To use it, you can include the JAR in your project (download the JAR and source here). It includes several test classes in the net.chiappone.crypt.test package for example usage. In this article I’ll show some of these examples with their corresponding output.