Differences
This shows you the differences between the selected revisions of the page.
| 2016-02-22 | 2016-02-23 | ||
| missing label argument (martin) | System.BitConverter (martin) | ||
| Line 32: | Line 32: | ||
| $sha1 = [System.Security.Cryptography.SHA1]::Create() | $sha1 = [System.Security.Cryptography.SHA1]::Create() | ||
| $localStream = [System.IO.File]::OpenRead($localPath) | $localStream = [System.IO.File]::OpenRead($localPath) | ||
| - | $localChecksum = [BitConverter]::ToString($sha1.ComputeHash($localStream)) | + | $localChecksum = [System.BitConverter]::ToString($sha1.ComputeHash($localStream)) |
| Write-Host $localChecksum | Write-Host $localChecksum | ||
| Line 53: | Line 53: | ||
| # Calculate remote file checksum | # Calculate remote file checksum | ||
| - | $remoteChecksum = [BitConverter]::ToString($session.CalculateFileChecksum("sha-1", $remotePath)) | + | $remoteChecksum = [System.BitConverter]::ToString($session.CalculateFileChecksum("sha-1", $remotePath)) |
| Write-Host $remoteChecksum | Write-Host $remoteChecksum | ||
| } | } | ||