external help file | Module Name | online version | schema |
---|---|---|---|
DSInternals.PowerShell.dll-Help.xml |
DSInternals |
2.0.0 |
Calculates NT hash of a given password.
ConvertTo-NTHash [-Password] <SecureString> [<CommonParameters>]
Applies the NT one-way function (NT OWF) to a given cleartext password and returns the resulting hash, which is just the MD4 hash function applied to the UTF-16 encoded input.
This hash is sometimes called NTLM hash, because it is mainly used in the NTLM(v2) network authentication protocol.
PS C:\> ConvertTo-NTHash
cmdlet ConvertTo-NTHash at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Password: ********
92937945b518814341de3f726500d4ff
Reads a password from the command line and calculates its NT hash.
PS C:\> $pwd = ConvertTo-SecureString -String 'Pa$$w0rd' -AsPlainText -Force
PS C:\> ConvertTo-NTHash -Password $pwd
92937945b518814341de3f726500d4ff
Calculates the NT hash of password Pa$$w0rd.
Specifies a password in the form of a SecureString.
Type: SecureString
Parameter Sets: (All)
Aliases: p
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.