Get-StringHash
SYNOPSIS
SYNTAX
Get-StringHash [-Strings] <String[]> [[-Algorithm] <String>] [[-Salt] <String>] [-RandomSalt]
[[-Iterations] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Generates a hash of an string object
EXAMPLES
EXAMPLE 1
Get-StringHash -Strings 'ThisIsAComplicatedPassword123#' -Algorithm SHA512
Hashes the string specified
PARAMETERS
-Strings
Defines the array of strings to generate hashes of
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Algorithm
Defines which hashing algorithm to use, valid values are MD5, SHA256, SHA384 and SHA512. Defaults to SHA512
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: SHA256
Accept pipeline input: False
Accept wildcard characters: False
-Salt
Defines a specific salt to use, this is useful when recalculating a string hash with a known salt for comparison. A new random salt is generated by default for every string that is processed.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RandomSalt
Defines that a random salt should be used
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Iterations
Defines the number of rehashing operations that is performed.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: 10
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
RELATED LINKS
EDIT THIS DOC
This page was auto-generated from the powershell command comment based help. To edit the content of this page, update the script file comment based help on github Github