| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| 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 |
|
#2
|
| 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 |
|
#3
|
| On 2 aug, 00:23, Tim Mohrlant > 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 |
|
#4
|
| 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 >> 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 |
|
#5
|
| On 3 aug, 03:47, Tim Mohrlant > 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 > >> 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 |
|
#6
|
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |