A encrypt tool written in java