add encryption implementation for DES
fix issue, byte & 0xff, to avoid sign extension from byte to int.