Java port of Rob Napier's RNCryptor library