ConvertTo-Hash
SYNOPSIS
Converts a string to a hash.
SYNTAX
ConvertTo-Hash [-String <String[]>] [-Algorithm <String>] [-Encoding <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Converts a string to a hash.
EXAMPLES
EXAMPLE 1
ConvertTo-Hash -String 'MyString'
38F92FF0761E08356B7C51C5A1ED88602882C2768F37C2DCC3F0AC6EE3F950F5
PARAMETERS
-String
A string to convert.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Algorithm
The hashing algorithm to use. Defaults to 'SHA256'.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: SHA256
Accept pipeline input: False
Accept wildcard characters: False
-Encoding
{{ Fill Encoding Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: UTF8
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
[String[]]
NOTES
RELATED LINKS
https://austoonz.github.io/Convert/functions/ConvertTo-Hash/