Ask the Expert

Use LotusScript to create encrypted replicas

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
  • This was first published in February 2008

    There are Comments. Add yours.

    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to: