making progress with SML's en/de-crypt