Command Reference

Home / Resources / Guide / Command Reference

Policy

Making policy, you can determine what encryption algorithm will be applied, whether to use VIV or FIV, and whether to encrypt partially or entirely. You can assign different policies to each columns.

  • CREATE POLICY <policy id>”<enc algorithm id>”<iv mode>[“<partial-enc-pos>”<partial-enc-off>] <ENCODING>
  • <policy id>: policy identity making each policy unique
  • <enc algorithm id>: algorithm to be used for encryption
  • supported encryption algorithms: TDES, AES, BLOWFISH, RC4
  • <iv mode>: VIV or FIV
  • VIV: Variable Initial Vector. Cyphertexts encrypted from same plaintext can have different values.
  • FIV: Fixed Initial Vector. Cyphertexts encrypted from same plaintext always have same values. Recommended to use for special reasons such as PK or FK.
  • <partial-enc-pos>: Start position of partial encryption. If not specified, encrypt from the beginning.
  • <partial-enc-off>: The length of text to encrypt partially. If not specified, encrypt to the end.
  • <ENCODING>: Select how to encode encrypted data as RAW or BASE64 or HEXSTRING

#fancy-title-66a492cc35226 a{ color: #5b5b5b; }

  • DELETE POLICY <policy id>
  • Explanation: Deletes entered policy. If there is at least 1 column encrypted by that column, deletion cannot be done.

#fancy-title-66a492cc354b1 a{ color: #5b5b5b; }
When a policy is deleted and a new policy with the same settings is created, the key is different from the old one’s, so be careful when deleting policies. We recommend to delete unnecessary policies so that they do not waste system resources.
#mk-custom-box-66a492cc356ec { padding:10px 20px; margin-bottom:20px; background-attachment:scroll; background-repeat:repeat; background-color:#ebebeb; background-position:left top; } #mk-custom-box-66a492cc356ec .mk-divider .divider-inner i{ background-color: #ebebeb !important; }
#icon-font-66a492cc35d51 i { background-color:; color:#000000; border-color:; } #icon-font-66a492cc35d51 i:hover { background-color:; color:rgba(0,0,0,0.51); border-color:; }

#fancy-title-66a492cc367fc a{ color: #274e75; }