A book cipher class for java