You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW, any chance we could add a Get-Hash command as well that would operate on strings instead of files? This comes in handy. See the PSCX impl for Get-Hash as an example. Of course, if I were writing this command from scratch today, I would default to SHA256 instead of MD5. :-)
Get-Hash doesn't exist right now so no worries about a breaking change. And the default Algorithm for Get-FileHash is SHA256. My only point is that it would be nice to have a cmdlet that hashes strings (in addition to the existing cmdlet that operates on files).
It is a drag that if you want to hash a string, you have to write it to a file. OK that is not entirely true, you can hash a string directly but not many folks will figure this out:
Activity
rkeithhill commentedon Nov 20, 2016
BTW, any chance we could add a Get-Hash command as well that would operate on strings instead of files? This comes in handy. See the PSCX impl for Get-Hash as an example. Of course, if I were writing this command from scratch today, I would default to SHA256 instead of MD5. :-)
iSazonov commentedon Nov 20, 2016
I agree but
Is this a breaking change or not?
rkeithhill commentedon Nov 20, 2016
Get-Hashdoesn't exist right now so no worries about a breaking change. And the default Algorithm forGet-FileHashis SHA256. My only point is that it would be nice to have a cmdlet that hashes strings (in addition to the existing cmdlet that operates on files).It is a drag that if you want to hash a string, you have to write it to a file. OK that is not entirely true, you can hash a string directly but not many folks will figure this out:
iSazonov commentedon Nov 21, 2016
Keith Hill (@rkeithhill) Great idea!
So maybe make new
Get-Hashcmdlet with support file and string sources and makeGet-FileHashas wrapper for it?iSazonov commentedon Jan 19, 2017
PowerShellTeam I started working on this, please assign me.