Skip to content

microsoft/PSCredentialTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSCredentialTools

PSCredentialTools provides methods for securely generating, storing and retrieving credentials and other sensitive data for use in PowerShell scripts and Desired State Configurations. Credentials can be saved to disk, encrypted with either a pre-shared-key or with a PKI certificate. Credentials can also be stored in Azure KeyVault as an Azure KeyVault Secret.

List of cmdlets

PSCredentialTools includes the following cmdlets:

PSCredentials cmdlets

  • Export-PSCredential: encrypts and saves a PowerShell Credential object to file or to Azure KeyVault
  • Import-PSCredential: decrypts a previously saved Credential back into a PowerShell Credential object
  • New-PSCredential: creates new PowerShell credential object, with a random strong password, and saves it to an encrypted file or to Azure KeyVault

Conversion cmdlets

  • ConvertFrom-FIPSSecureString: Converts a PowerShell SecureString object into encypted text, using a pre-shared-key. It uses the FIPS compliant AES Crypto Provider.
  • ConvertTo-FIPSSecureString: Converts a previously encrypted SecureString with a pre-shared-key back into a PowerShell SecureString object.
  • ConvertFrom-PKISecureString: Converts a PowerShell SecureString object into encrypted text using a provided certificate's Public Key
  • ConvertTo-PKISecureString: Converts a previously encrypted SecureString back into a PowerShell SecureString object using the provided certificate's Private Key

Contributing

If you are interested in fixing issues and contributing directly to the code base, please see the document contributing guide.

License

Licensed under the MIT License.

About

PSCredential Tools provides varions methods for securly storing and retrieving credentials used in PowerShell scripts

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •