doEncrypt() and doDecrypt() is now more friendly.