Preparing a Post for Encryption

Before running MPBin, follow these steps to identify the content in your post that you want encrypted. Note that any reference to .PST files also applies to .MCPOST files.

  1. Make a backup copy of your original post.
  2. Make a copy of the file with a .PSM extension. This will be your master file for future edits once your .PST file has been encrypted.
  3. Open the .PSM file in a text editor.
  4. Insert [STARTBIN] before the block of code that you want encrypted.
  5. Insert [ENDBIN] after the block of code that you want encrypted.
  6. Save the file.

The [STARTBIN] and [ENDBIN] keywords must each be on a separate line and start in the first column. They cannot appear inside a postblock.

  • The [STARTBIN] and [ENDBIN] keywords cannot be nested. You can, however, have multiple sets of [STARTBIN] and [ENDBIN] keywords.
  • The keywords cannot be inside the post text. However, the post text section can be contained within them.
  • If the keywords appear in comments (after the # symbol), MPBin ignores them.
  • If the keywords do not occur in ordered, matched pairs, MPBin generates an error message.

MPBin removes all the code between [STARTBIN] and [ENDBIN] from the original post file, and writes it to a .PSB file in encrypted form. Once this occurs, you cannot recover the original .PST file—you will need to rely on the .PSM file as your master source file going forward.

You can delimit any amount of text—from one line to the entire post processor file—with [STARTBIN] and [ENDBIN]. However, the recommended best practice is to leave unencrypted any code that users can use to make minor modifications on their own without assistance from a post developer.

NOTE

The post header—the first line in the .PST/.PSM file—can never be included. Therefore, the earliest possible location for the [STARTBIN] keyword is the second line of your post, immediately after the header.

NOTE

For posts with a .MCPOST extension instead of .PST, use a .MCDPOST extension instead of .PSM.

Learn more