Nein, du brauchst die Daten und eine optionale Entropy (wird auch als Salt bezeichnet).
Der Schlüssel wird von der
API selber generiert/verwaltet. Siehe dazu bei
dwFlags
Zitat:
CRYPTPROTECT_LOCAL_MACHINE
When this flag is set, it associates the data protected with the current computer instead of with an individual user. Any user on the computer on which the internal protect function is called with this flag can use the internal unprotect function to unprotect the data. Application developers should understand that by using this flag no "real" protection is provided by DPAPI. By "real" we mean that any process running on the system can unprotect any data protected with this flag. We highly recommended that this flag not be used on workstations to protect user's data. It does make sense, however, for a server process to use the flag on a server where untrusted users are not allowed to logon. It also makes sense for a local machine process to use the flag to protect data to be stored off the machine or on a shared drive.
Die Daten können somit nur von dem Benutzer oder auf dieser Maschine wieder entschlüsselt werden.
Hier noch etwas auf
stackoverflow