Makes encrypting and decrypting strings and other security work easy.

Minimum PowerShell version


There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Carbon.Cryptography -RequiredVersion 1.0.3

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Aaron Jensen and WebMD Health Services


(c) Aaron Jensen and WebMD Health Services.



Desktop Core Caron security convert securestring string certificate certificates x509 x509certificate x509certificates install uninstall encrypt decrypt aes rsa protect unprotect crypto cryptography dpapi key public-key private-key asymmetric symmetric


Convert-CSecureStringToByte Convert-CSecureStringToString Get-CCertificate Install-CCertificate Protect-CString Uninstall-CCertificate Unprotect-CString


Desktop Core


This module has no dependencies.

Release Notes

* Fixed: When installing certificates with private keys, the `Install-CCertificate` function causes Windows API to write
extra files to the directories where private keys are saved.
* Fixed: In some situations, the `Install-CCertificate` function, when passed a certificate object to install with a
private key, would fail to install the private key.

Version History

Version Downloads Last updated
3.0.0 801 7/22/2022
2.3.0 112 4/12/2022
2.3.0-alpha198 73 4/8/2022
2.2.1 204 3/17/2022
2.2.0 602 10/27/2021
2.1.0 89 10/22/2021
2.0.0 86 10/20/2021
1.1.0 109 10/20/2021
1.0.4 222 5/14/2021
1.0.3 (current version) 130 3/8/2021
1.0.2 100 2/6/2021
1.0.1 89 2/5/2021
1.0.0 89 2/2/2021
Show less