Hi,
does anybody know how to encrypt a document for several other users using “Public encryption” in the backend with LotusScript ?
The question is a little tricky because I already did many tests and failed to achieve it.
From my tests i already know how to:
- encrypt the document with “secret key” encryption (This works in the backend as well as for several users/keys but actually I dont want to use “SecretKeys”)
{HowTo: Use the EncryptionKeys-Property and the Encrypt-method of the NotesDocument object}
- encrypt the document with a “public key” in the backend ONLY for the current user (thats nice, but i really need to add some others as well :())
{HowTo: Use only the Encrypt-method of the NotesDocument object and thats all}
- encrypt the document with “public keys” for several defined users (YEAH !!!) but unfortunatly only if the document is actually opened in the UI (Noooo !!!)
{HowTo: Simply mark some fields on the form to be encrypted and then create the magic field “PublicEncryptionKeys” where you store all usernames of the people for whom you want to encrypt}
What I really want to do is to create
-
Create documents that are saved with encrypted fields for SEVERAL users (this could be done with the last method)
-
Create an background, scheduled agent that checks these documents and if the list of users changes then all of the documents are again reencrypted for the new userlist
Does anybody know how to achieve this.
Thanks in advance for any responses.
Bye
Hynek
PS: I really don’t want to use “Secret encryption” for this because the the admin efford for distributing the keys would be too much