A library designed to simplify common cryptographic processes
$ dotnet add package CryptoStreamCryptoStream is a library that features some cryptographic functions and stream support. This includes base implementation of a "BlockStream" and a "CryptoBlockStream" implemented with gcm.
# Restore tools
dotnet tool restore
# General clean up
rd -r **/bin/; rd -r **/obj/;
# Run unit tests
gci -r -dir ../TestResults | % { rm -r $_ }; dotnet test -c Release -s .runsettings; dotnet reportgenerator -targetdir:coveragereport -reports:**/coverage.cobertura.xml -reporttypes:"html;jsonsummary"; start coveragereport/index.html;
# Run mutation tests
gci -r -dir ../StrykerOutput | % { rm -r $_ }; dotnet stryker -o;
# Pack and publish a pre-release to a local feed
$suffix="alpha001"; dotnet pack -c Release -o nu --version-suffix $suffix; dotnet nuget push "nu\*.*$suffix.nupkg" --source localdev; gci nu/ | ri -r; rmdir nu;
# Pack and publish a release to nuget.org
$apiKey="???"; gci -r -dir ../nu | % { rm -r $_ }; dotnet pack -c Release -o nu; dotnet nuget push "nu\*.nupkg" --api-key $apiKey --source https://api.nuget.org/v3/index.json;