not include the password and name

  • Thread starter Thread starter Keith Henderson
  • Start date Start date
K

Keith Henderson

I have an applicaiton that needs to pass to to a 3rd party application a
username and password. The name and password are not provided by or known
by the user. They're also not for a connection string to a database, I use
SSPI for that. I do not want to compile them in the app. I can use an
app.config file if i need to but the name & password have to be encrypted
and then decrypted for that one time they are passed to this application.

How do i store them encrypted and then decrypted them?
 
Hello,

You can use classes from the System.Security.Cryptography namespace to
encrypt and decrypt password data. Then, you can encode the encrypted binary
array to base64 to be able to store it in an XML file such as app.config.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top