Q
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 = 
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

    SearchWindowsServer

    Search400

    • Favorite iSeries cheat sheets

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

    • HTML cheat sheet

      This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

    • Carol Woodbury: Security

      Carol Woodbury

    SearchDataCenter

    SearchContentManagement

    Close