CryptProtectData: Wrapper for the Windows DPAPI function CryptProtectData()

Description Usage Arguments

Description

This function is intended to be an internal helper file for the package. Both parameters are currently necessary, and bust be between 1 and 256 bytes in length. The salt should be generated using PKI::PKI.random(), or some other cryptographically stron random number generator.

Usage

1
CryptProtectData(pwd, salt)

Arguments

pwd

The raw representation of the string top be encrypted

salt

A vector of randomly generated bytes


cpbonnell/winlockr documentation built on May 28, 2019, 7:47 p.m.