Get-Hash

SYNOPSIS

Get hash for a string.

SYNTAX

Get-Hash [-String] <String> [[-Algorithm] <Object>] [<CommonParameters>]

DESCRIPTION

This function uses various various crypto service providers to get the hash value for a given input string.

EXAMPLES

————————– EXAMPLE 1 ————————–

Get-Hash "Hello World!"

This example returns the MD5 hash of “Hello World!”.

————————– EXAMPLE 2 ————————–

Get-Hash "Get-Hash "Hello World!" -Algorithm Sha256"

This example gets the SHA256 hash of “Hello World!”.

PARAMETERS

-String

The string to convert.

Type: <string>
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Algorithm

Specify the hash algorithm to use.

Type: <string>
Required: False
Position: 2
Default value: MD5
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES