Test for encrypting.