mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:49:08 +08:00
10 lines
308 B
PowerShell
10 lines
308 B
PowerShell
[CmdletBinding()]
|
|
Param(
|
|
[Parameter(Mandatory=$True)]
|
|
[String]$Value
|
|
)
|
|
|
|
$sha256 = New-Object -TypeName System.Security.Cryptography.SHA256CryptoServiceProvider
|
|
$utf8 = New-Object -TypeName System.Text.UTF8Encoding
|
|
[System.BitConverter]::ToString($sha256.ComputeHash($utf8.GetBytes($Value)))
|