Skip to content

Question: Purpose of CryptProtectData #4

@smjoshiatglobus

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

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