https://github.com/webmd-health-services/carbon.cryptography
Cross-platform PowerShell module that makes encrypting and decrypting strings (using standard cryptographic algorithms) and managing certificates easy.
https://github.com/webmd-health-services/carbon.cryptography
aes-crypto aes-encryption certificates cryptography dpapi powershell powershell-core powershell-module rsa-cryptography rsa-encryption securestring security x509 x509certificates
Last synced: 8 months ago
JSON representation
Cross-platform PowerShell module that makes encrypting and decrypting strings (using standard cryptographic algorithms) and managing certificates easy.
- Host: GitHub
- URL: https://github.com/webmd-health-services/carbon.cryptography
- Owner: webmd-health-services
- License: apache-2.0
- Created: 2021-01-28T01:34:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-29T19:55:59.000Z (11 months ago)
- Last Synced: 2025-09-11T07:19:55.353Z (9 months ago)
- Topics: aes-crypto, aes-encryption, certificates, cryptography, dpapi, powershell, powershell-core, powershell-module, rsa-cryptography, rsa-encryption, securestring, security, x509, x509certificates
- Language: PowerShell
- Homepage:
- Size: 350 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Notice: NOTICE
Awesome Lists containing this project
README
# Carbon.Cryptography
## Overview
The "Carbon.Cryptography" module has functions that help manage X509 certificates and working with secure strings.
It started out as part of the [Carbon](http://get-carbon.org) module. But when that module become too big and unwieldy,
its security-related functionality was moved into this module.
## System Requirements
* Windows PowerShell 5.1 and .NET 4.6.1+
* PowerShell Core 6+
## Dependencies
Carbon.Cryptography has a private, nested dependency on PureInvoke 1.0.1.
## Installing
To install globally:
```powershell
Install-Module -Name 'Carbon.Cryptography'
Import-Module -Name 'Carbon.Cryptography'
```
To install privately:
```powershell
Save-Module -Name 'Carbon.Cryptography' -Path '.'
Import-Module -Name '.\Carbon.Cryptography'
```
## Commands
* `Convert-CSecureStringToByte`: converts a secure string into an array of bytes (that can be easily cleared from from
memory, unlike strings, who hang out forever).
* `Convert-CSecureStringToString`: converts secure strings to strings.
* `Get-CCertificate`: reads X509 certificates from files or, on Windows, from the Windows certificate stores.
* `Install-CCertificate`: Installs X509 certificates into the Windows certificate store.
* `Protect-CString`: Encrypt a string using the Windows Data Protection API (DPAPI; Windows only), public/private key
cryptography, or symmetric cryptography.
* `Uninstall-CCertificate`: Removes X509 certificates from the Windows certificate store.
* `Unprotect-CFileToken`: Finds and decrypts all encrypted tokens within a file which were encrypted with `Protect-CString`.
* `Unprotect-CString`: Decrypt a string that was encrypted with `Protect-CString`.