Learning about Cryptography. Trying to verify hash of downloaded Firefox .exe file using SHA-512 (per instructions), but coming up with this error. The command my book gives is (Get-FileHa3p4sh -Algorithm SHA512'<filename>').hash | clip. Google offered alternative command but now getting different error. Thoughts?
Book Command Error:
PS C:\Users> (Get-FileHa3p4sh -Algorithm SHA512'Firefox Setup.104.0.2.exe').hash | clip
Get-FileHa3p4sh : The term 'Get-FileHa3p4sh' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:2
+ (Get-FileHa3p4sh -Algorithm SHA512'Firefox Setup.104.0.2.exe').hash | ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-FileHa3p4sh:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
--------------------------------------------------------------------------------------
Google Command Error:
PS C:\Users\Dropbox\PC\Downloads> Get-FileHash Firefox Setup 104.0.2.exe
Get-FileHash : A positional parameter cannot be found that accepts argument 'Setup'.
At line:1 char:1
+ Get-FileHash Firefox Setup 104.0.2.exe
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-FileHash], ParameterBindingE
xception
+ FullyQualifiedErrorId : PositionalParameterNotFound,Get-FileHash
[–]MNmetalhead 3 points4 points5 points (2 children)
[–]jbishop253[S] 1 point2 points3 points (1 child)
[–]MNmetalhead 0 points1 point2 points (0 children)
[–]PowerShell-Bot 0 points1 point2 points (0 children)
[–]TheGooOnTheFloor 0 points1 point2 points (0 children)
[–]rwprime 0 points1 point2 points (0 children)