Encrypt using Java

A Java implementation of cipher encryption