FoxPro Programming
How to set up a private/public key pair system to sign and verify documents
Gravatar is a globally recognized avatar based on your email address. How to set up a private/public key pair system to sign and verify documents
  Alejandro A Sosa
  All
  Jun 17, 2019 @ 02:43pm

I would like to set up a private/public key pair system to sign and verify documents. The signing and verifying is to be done with VFP calls. Any suggestions?

Thank you very much,

Alex

Gravatar is a globally recognized avatar based on your email address. re: How to set up a private/public key pair system to sign and verify documents
  Alejandro A Sosa
  Alejandro A Sosa
  Jun 17, 2019 @ 04:38pm

I googled "NET RSA signing verifying sample" and found a question in StackOverflow which received a couple of answers that together provide the solution. Thanks to all the helpers in the internet, including our own Rick Strahl for creating wwDotNetBridge.

Now I just need to figure out how to package it in a way that it's callable using wwDotNetBridge and I'll be home.

Alex

Gravatar is a globally recognized avatar based on your email address. re: How to set up a private/public key pair system to sign and verify documents
  Rick Strahl
  Alejandro A Sosa
  Jun 17, 2019 @ 06:13pm

You can just create a .NET class library that you call from FoxPro. It'll be easier to put that code into .NET than trying to map it all via wwDotnetBridge, and then just call the new assembly from FoxPro where you just pass a few parameters or pass a FoxPro object.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: How to set up a private/public key pair system to sign and verify documents
  Alejandro A Sosa
  Rick Strahl
  Jun 17, 2019 @ 10:00pm

Hmm... I was planning to create a .NET class and then call it from VFP using wwDotNetBridge.

Your comment led me to search again and I found Claudio Lassala's article.

So... A useful trick to get at cool .NET classes. Thanks. Wasn't in my radar.

Alex

Gravatar is a globally recognized avatar based on your email address. re: How to set up a private/public key pair system to sign and verify documents
  Rick Strahl
  Alejandro A Sosa
  Jun 18, 2019 @ 12:29am

You don't need to do any of that if you use wwDotnetBridge. It's much easier that way than using classic COM interop because you don't have to register components and you don't have to worry about only accessing COM accessible classes and passing COM objects to .NET. With wwDotnetBridge you things just work.

Creating a .NET class as you planned is the right way to do this.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: How to set up a private/public key pair system to sign and verify documents
  Alejandro A Sosa
  Rick Strahl
  Jun 18, 2019 @ 05:25am

Thanks 😃

Alex

© 1996-2024