Sha256: f9736caac4fbe3767eb1ddfffb3cef648c387f4672aa1baca640441dbf5439a1

Contents?: true

Size: 483 Bytes

Versions: 51

Compression:

Stored size: 483 Bytes

Contents

$p = $ExecutionContext.SessionState.Path
$path = $p.GetUnresolvedProviderPathFromPSPath("<%= path %>")

if (Test-Path $path -PathType Leaf) {
  $cryptoProv = [System.Security.Cryptography.<%= digest %>]::Create()
  $file = [System.IO.File]::Open($path,
      [System.IO.Filemode]::Open, [System.IO.FileAccess]::Read)
  $digest = ([System.BitConverter]::ToString($cryptoProv.ComputeHash($file)))
  $digest = $digest.Replace("-","").ToLower()
  $file.Close()

  Write-Output $digest
}

Version data entries

51 entries across 35 versions & 3 rubygems

Version Path
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-1.3.5 lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.4/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.4/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.3/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.4/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-1.3.4 lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-1.3.3 lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/winrm-fs-1.3.0/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/winrm-fs-1.3.1/lib/winrm-fs/scripts/checksum.ps1.erb