Reading encrypted fields with Lotusscript

This is a discussion on Reading encrypted fields with Lotusscript within the lotus-notes-programmer forums in Other Technologies category; Hello I have a database with documents. On the documents are 2 fields which are encrypted with an key. I am using an user id with the encryption key included. I have tested this by opening a document. I can see the content of the encrypted fields. But when I use the same id and access the same document with lotusscript I donīt see the encrypted fields. I cannot read the content of the fields using lotusscript. I found out that I have to use the C API: NSFNoteDecrypt. But I am not that familiar with api's. Can ...

Go Back   Database Forum > Other Technologies > lotus-notes-programmer

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-31-2008, 02:45 AM
Default Reading encrypted fields with Lotusscript

Hello

I have a database with documents. On the documents are 2 fields which
are encrypted with an key. I am using an user id with the encryption
key included. I have tested this by opening a document. I can see the
content of the encrypted fields.
But when I use the same id and access the same document with
lotusscript I donīt see the encrypted fields. I cannot read the
content of the fields using lotusscript.
I found out that I have to use the C API: NSFNoteDecrypt. But I am not
that familiar with api's. Can anyone help me out with the lotusscript
code to use this api?

Regards
Reply With Quote
  #2  
Old 08-01-2008, 07:23 PM
Default Re: Reading encrypted fields with Lotusscript

Even with the C-API, I believe the ID file has to be available, so a
background agent will not work.

It would be nice if there was a way to make this work - I've wanted to
do this kind of thing numerous times.

Tim Mohrlant

Lando Chez wrote:
> Hello
>
> I have a database with documents. On the documents are 2 fields which
> are encrypted with an key. I am using an user id with the encryption
> key included. I have tested this by opening a document. I can see the
> content of the encrypted fields.
> But when I use the same id and access the same document with
> lotusscript I donīt see the encrypted fields. I cannot read the
> content of the fields using lotusscript.
> I found out that I have to use the C API: NSFNoteDecrypt. But I am not
> that familiar with api's. Can anyone help me out with the lotusscript
> code to use this api?
>
> Regards

Reply With Quote
  #3  
Old 08-02-2008, 04:41 AM
Default Re: Reading encrypted fields with Lotusscript

On 2 aug, 00:23, Tim Mohrlant wrote:
> Even with the C-API, I believe the ID file has to be available, so a
> background agent will not work.
>
> It would be nice if there was a way to make this work - I've wanted to
> do this kind of thing numerous times.
>
> Tim Mohrlant
>
>
>
> Lando Chez wrote:
> > Hello

>
> > I have a database with documents. On the documents are 2 fields which
> > are encrypted with an key. I am using an user id with the encryption
> > key included. I have tested this by opening a document. I can see the
> > content of the encrypted fields.
> > But when I use the same id and access the same document with
> > lotusscript I donīt see the encrypted fields. I cannot read the
> > content of the fields using lotusscript.
> > I found out that I have to use the C API: NSFNoteDecrypt. But I am not
> > that familiar with api's. Can anyone help me out with the lotusscript
> > code to use this api?

>
> > Regards- Tekst uit oorspronkelijk bericht niet weergeven -

>
> - Tekst uit oorspronkelijk bericht weergeven -


Hi

Thank you for the reply. But what if the id that is using the
lotusscript has the encryption key? Will it still don't work?

Regards
Reply With Quote
  #4  
Old 08-02-2008, 10:47 PM
Default Re: Reading encrypted fields with Lotusscript

The thing is, while the agent was signed with an ID that has the
encryption key, the actual ID is not available at runtime, and that is
what is necessary (that is why it works when you use that ID and run the
agent in the foreground).

Tim Mohrlant

Lando Chez wrote:
> On 2 aug, 00:23, Tim Mohrlant wrote:
>> Even with the C-API, I believe the ID file has to be available, so a
>> background agent will not work.
>>
>> It would be nice if there was a way to make this work - I've wanted to
>> do this kind of thing numerous times.
>>
>> Tim Mohrlant
>>
>>
>>
>> Lando Chez wrote:
>>> Hello
>>> I have a database with documents. On the documents are 2 fields which
>>> are encrypted with an key. I am using an user id with the encryption
>>> key included. I have tested this by opening a document. I can see the
>>> content of the encrypted fields.
>>> But when I use the same id and access the same document with
>>> lotusscript I donīt see the encrypted fields. I cannot read the
>>> content of the fields using lotusscript.
>>> I found out that I have to use the C API: NSFNoteDecrypt. But I am not
>>> that familiar with api's. Can anyone help me out with the lotusscript
>>> code to use this api?
>>> Regards- Tekst uit oorspronkelijk bericht niet weergeven -

>> - Tekst uit oorspronkelijk bericht weergeven -

>
> Hi
>
> Thank you for the reply. But what if the id that is using the
> lotusscript has the encryption key? Will it still don't work?
>
> Regards

Reply With Quote
  #5  
Old 08-04-2008, 05:11 AM
Default Re: Reading encrypted fields with Lotusscript

On 3 aug, 03:47, Tim Mohrlant wrote:
> The thing is, while the agent was signed with an ID that has the
> encryption key, the actual ID is not available at runtime, and that is
> what is necessary (that is why it works when you use that ID and run the
> agent in the foreground).
>
> Tim Mohrlant
>
>
>
> Lando Chez wrote:
> > On 2 aug, 00:23, Tim Mohrlant wrote:
> >> Even with the C-API, I believe the ID file has to be available, so a
> >> background agent will not work.

>
> >> It would be nice if there was a way to make this work - I've wanted to
> >> do this kind of thing numerous times.

>
> >> Tim Mohrlant

>
> >> Lando Chez wrote:
> >>> Hello
> >>> I have a database with documents. On the documents are 2 fields which
> >>> are encrypted with an key. I am using an user id with the encryption
> >>> key included. I have tested this by opening a document. I can see the
> >>> content of the encrypted fields.
> >>> But when I use the same id and access the same document with
> >>> lotusscript I donīt see the encrypted fields. I cannot read the
> >>> content of the fields using lotusscript.
> >>> I found out that I have to use the C API: NSFNoteDecrypt. But I am not
> >>> that familiar with api's. Can anyone help me out with the lotusscript
> >>> code to use this api?
> >>> Regards- Tekst uit oorspronkelijk bericht niet weergeven -
> >> - Tekst uit oorspronkelijk bericht weergeven -

>
> > Hi

>
> > Thank you for the reply. But what if the id that is using the
> > lotusscript has the encryption key? Will it still don't work?

>
> > Regards- Tekst uit oorspronkelijk bericht niet weergeven -

>
> - Tekst uit oorspronkelijk bericht weergeven -


Hi

I think that I have covered that problem. The way my application works
is like this:
A java agent is started with a bat file ( from the windows system).
This agent kick of a lotusscript agent as a user. The Java agent
receives in the call a few parameters( server address, filename,
lotusscript agent name, filepath of user id. password of user id).
This user id has the encryption key. In this way the user id is
available at runtime when the Java agent starts the lotusscript agent.
I have tested this and it works.
My following question is?
Does a document with encrypted fields needs to be decrypted first with
a API or IsEncrypted = False before the content of the encrypted
fields are visible? Because when I use an id with encryption key and
run the lotusscript I can see the content of the fields without using
those special methods.

Regards
Reply With Quote
  #6  
Old 08-04-2008, 08:19 PM
Default Re: Reading encrypted fields with Lotusscript

It seems to me that the encrypted fields should just be available if the
ID has the encryption key. But I'm not really sure how it all works
when you are calling it they way you are.

Tim Mohrlant

>
> I think that I have covered that problem. The way my application works
> is like this:
> A java agent is started with a bat file ( from the windows system).
> This agent kick of a lotusscript agent as a user. The Java agent
> receives in the call a few parameters( server address, filename,
> lotusscript agent name, filepath of user id. password of user id).
> This user id has the encryption key. In this way the user id is
> available at runtime when the Java agent starts the lotusscript agent.
> I have tested this and it works.
> My following question is?
> Does a document with encrypted fields needs to be decrypted first with
> a API or IsEncrypted = False before the content of the encrypted
> fields are visible? Because when I use an id with encryption key and
> run the lotusscript I can see the content of the fields without using
> those special methods.
>
> Regards

Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 02:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.