Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 27 days 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T19:24:02.000Z (5 months ago)
- Last Synced: 2024-10-11T21:01:31.263Z (27 days 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: 267 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 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+# 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-CString`: Decrypt a string that was encrypted with `Protect-CString`.