masta
masta

Reputation: 69

Send password to service from Outlook

Hi i have Outlook plugin that send request to my WCF Service. I faced with some issues regarding public folders. So the one way to resolve it to save user Account and Password inside plugin configuration (saved in system registry key). What is the safe way to save it and send it to server?

Upvotes: 0

Views: 117

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66255

You can use CryptProtectData and store the data in file or registry. The data can be decrypted using CryptUnprotectData. The data is encrypted in such a way that only the user with the same credentials can decrypt the data, i.e. it cannot be decrypted from another computer or when running in a secury context of a diffent Windows user.

Microsoft itself uses these functions to store credentials for the POP3/IMAP4/SMTP accounts in Outlook.

Upvotes: 1

Related Questions