Skip to content

Question: Purpose of CryptProtectData #4

Description

@smjoshiatglobus

Hello,

Thank you for creating the cryptex crate and making it open source!

I see that src/keyring/windows.rs on line 128 calls CryptProtectData before calling CredWriteW.

Since CredWriteW will anyway use the user's password to encrypt the data, why encrypt it with CryptProtectData first? Just curious about the purpose.

Thanks,
Sanjay

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions