Change setEncryption to useEncryption