Skip to content

Instantly share code, notes, and snippets.

View Kagre's full-sized avatar

Kagre

  • USA
View GitHub Profile
@Kagre
Kagre / AESThenHMAC.Tests.ps1
Last active September 3, 2021 23:49 — forked from jbtule/AESGCM.cs
Convert the AESThenHMAC code example to script for best practice encrypting a string in PowerShell. It uses authenticated encryption. http://stackoverflow.com/a/10366194/637783
<#
.SYNOPSIS
Pester'ng the AESThenHMAC class library
.EXAMPLE
Invoke-Pester .\AESThenHMAC.Tests.ps1
#>param()
. (join-path $PSScriptRoot 'AESThenHMAC.ps1')
$ProjectName = 'AESThenHMAC'