win32cred¶
Interface to credentials management functions.
Functions
CredDelete (TargetName, Type[, Flags]) |
Remove the given target name from the stored credentials. |
CredRead (TargetName, Type[, Flags]) |
Retrieves a stored credential. |
CredWrite (Credential[, Flags]) |
Creates or updates a stored credential. |
pywin32error (*args, **kwds) |
-
win32ctypes.pywin32.win32cred.
CredDelete
(TargetName, Type, Flags=0)[source]¶ Remove the given target name from the stored credentials.
Parameters:
-
win32ctypes.pywin32.win32cred.
CredRead
(TargetName, Type, Flags=0)[source]¶ Retrieves a stored credential.
Parameters: Returns: credentials (dict) – A dictionary containing the following:
- UserName: the retrieved username
- CredentialBlob: the password (as an utf-16 encoded ‘string’)
None
if the target name was not found.
-
win32ctypes.pywin32.win32cred.
CredWrite
(Credential, Flags=0)[source]¶ Creates or updates a stored credential.
Parameters: Returns: credentials (dict) – A dictionary containing the following:
- Type: the type of credential (see MSDN)
- TargetName: the target to use (string)
- Persist: see MSDN
- UserName: the retrieved username
- CredentialBlob: the password (as a string, not an encoded binary stream - this function takes care of the encoding).
- Comment: a string