A basic code cracking program written in java