Skip to content

Instantly share code, notes, and snippets.

View giulioturetta's full-sized avatar

Giulio giulioturetta

  • University of Padua
View GitHub Profile
@giulioturetta
giulioturetta / Get-Hash.ps1
Last active December 10, 2018 11:09 — forked from jaredcatkinson/Get-Hash.ps1
PowerShell v2 port of the Get-FileHash function. This version of Get-Hash supports hashing files and strings.
function Get-Hash
{
<#
.SYNOPSIS
Get-Hash is a PowerShell Version 2 port of Get-FileHash that supports hashing files, as well as, strings.
.PARAMETER InputObject
This is the actual item used to calculate the hash. This value will support [Byte[]] or [System.IO.Stream] objects.