Problem solve Get help with specific problems with your technologies, process and projects.

Use LotusScript to create encrypted replicas

Learn about Lotus Notes database encryption and the levels it can be set at on locally created replicas using LotusScript.

How can I use LotusScript to programmatically create encrypted replicas with a Lotus Notes user ID?
Lotus Notes database encryption is actually a database property that can be set using the create replica dialog. It also can be set or cleared later in the "Encryption Settings" dialog, found in the "Basics" tab of the database properties dialog.

Unfortunately, I've found that the encryption setting isn't exposed programmatically, although I haven't investigated DXL or the database design class available on the LDD sandbox for references. Nonetheless, you may not need to set it. Starting in Lotus Notes Domino R6, local replica copies receive medium-level encryption settings by default. If this suits your needs, you can create the replica:

Dim Session s = new NotesSession
Dim replicaCopy as NotesDatabase
Set replicaCopy = 

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from

  • Tip: Encryption and privacy in Lotus Notes Domino
  • Tip: How and why to change replica IDs during a Notes Domino upgrade
  • Reference Center: Lotus Notes Domino Email Encryption
  • Reference Center: Lotus Notes Domino Replication and Synchronization
  • Reference Center: LotusScript
  • Dig Deeper on LotusScript

    • Favorite iSeries cheat sheets

      Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...