Gz-ProtectData

0.1.0


# Gz-ProtectData Module

ProtectData provides functions/cmdlets that will encrypt and decrypt string or
binary data with a SecureString password or a private key made of an array of
bytes.

By default, the encrypted value will also contain a computed hash of the
data to verify integrity.

## Example

$decryptedValue = "some kind of secret"
  
$key = [

# Gz-ProtectData Module

ProtectData provides functions/cmdlets that will encrypt and decrypt string or
binary data with a SecureString password or a private key made of an array of
bytes.

By default, the encrypted value will also contain a computed hash of the
data to verify integrity.

## Example

$decryptedValue = "some kind of secret"
  
$key = [System.Text.Encoding]::UTF8.GetBytes("great-and-terrible-password")

$encryptedValue =  Protect-GzString -PrivateKey $key -Value $decryptedValue
$result = UnProtect-GzString -PrivateKey $key -Value $encryptedValue

Minimum PowerShell version

5.1

Installation Options

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

Install-Module -Name Gz-ProtectData

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy 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

Author(s)

Nerdy Mishka Michael Herndon

Copyright

(c) 2018 Nerdy Mishka. All rights reserved.

Version History

Version Downloads Last updated
0.1.0 (current version) 55 3/23/2019