How to secure/protect a file by using Microsoft Key Storage Provider?

Prabs 1 Reputation point
2021-11-29T04:28:37.097+00:00

Hi Team,

Can i secure/protect a file(like text file, ini file etc..) by using Microsoft key storage provider?

I have gone through the below link, I did not get clear view to protect a file. What is the key storage provider? Why it is required and all?

https://learn.microsoft.com/en-us/windows/win32/seccng/key-storage-and-retrieval

Please help me on this.

Regards,
Prabhakaran

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,428 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,125 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,501 Reputation points Microsoft Vendor
    2021-11-29T05:51:32.357+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Encrypt the whole file data which is the equivalent of rgbPlaintext or Sign the file hash and then Verify the signature. Using CNG is the same as Calling Native Functions from Managed Code.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments