fix encrypt/decrypt bug in peagun