Best Practices for Encrypting Fields

Encrypted Fields are more restricted than regular Fields and require special handling. Encrypted Fields:

  • Cannot be searched, displayed in Grids, or used in many of the areas where regular Fields can (ex: One-Steps, Expressions, Widgets, etc.).
  • Cannot be used in Reports as parameters or results.
  • Are stored in a database table separate from Business Objects, and cannot be indexed.
  • Cannot have default or calculated values, or set values based on lifecycle state.
  • Cannot use validation or auto-population.
  • Are limited to a maximum of 255 characters.
  • Cannot be permanently decrypted or converted back to unencrypted Fields.

For best results, use the following guidelines and considerations when encrypting Fields:

  • Back up your CSM database prior to encrypting Fields so that you can restore your system if you experience unexpected results.
  • Create multiple encryption keys, one for each Major Business Object in which you plan to use Field-Level Encryption.
  • To avoid confusion and potential data loss, use different encryption keys for test and production environments.
  • Ensure encryption keys are backed up.
  • Do not store data (.czar files) and encryption keys in the same location.
  • For best results, create a new Field and encrypt it.
  • If it is necessary to encrypt an existing Field, keep the following in mind:
    • The following Fields cannot be encrypted: RecID, PublicID, automatically created Fields (ex: Owned By, Owned By ID, Created Culture, etc.), and state Fields (ex: Incident.Status).
    • Check for dependencies to understand the impact of encrypting an existing Field. If the Field is used in areas where encrypted Fields cannot be used or displayed, encrypting it could have unfavorable consequences.
    • Encrypted Fields are limited to 255 characters. If you encrypt a Field that exceeds this limit, it will be truncated.
    • Only text Fields can be encrypted. To encrypt a Field of a different type, convert it to text, publish the Blueprint, and then encrypt the Field. Ensure the converted text Field is long enough to avoid truncating values (the limit for encrypted Fields is 255 characters).
© Copyright 2018 Cherwell Software, LLC. All rights reserved.