Single-DES encryption, patch courtesy of Murphy Lam