Check Dis oUt...
SecretWriterTest.java
http://open_projects.googlegroups.com/web/SecretWritingTest.java