By
Published: 12 Feb 2008
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 =
s.currentDatabase.CreateReplica("","filename.nsf")
Do you have comments on this Ask the Expert Q&A? Let us know.
Related information from SearchDomino.com:
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
A user wants to know if it's possible for LotusScript to read an attachment in a Notes document without first detaching it. Find out our expert's ...
Continue Reading
Learn about different options using LotusScript code and Formula language to customize the principal field of outgoing Lotus Notes email messages.
Continue Reading
Read about merging cells in a Microsoft Word table using LotusScript and an Excel example, along with the thought process that goes along with it.
Continue Reading