Set encryption key