4 ms·
You're right that a shell alone can't calculate md5 but a separate md5 binary does it for you, but the question still stands when the common answer on the inter
by h1d 8y ago
You're right that a shell alone can't calculate md5 but a separate md5 binary does it for you, but the question still stands when the common answer on the internet seems to be to write that cryptic code as that's probably the easiest way provided on PowerShell.
The best alternative I could find is some community maintained PowerShell extension (with just 177 GitHub stars now), which is far better but the lack of interest in making PowerShell act more straightforward is weird.
"string" | Get-Hash -Algorithm MD5
(https://github.com/Pscx/Pscx https://github.com/Pscx/Pscx)
Still feels funny to read the GGP's comment.
> 70s-era tooling is inferior in some way to something designed with 30 years of hindsight
- TeMPOraL 8y agoStill, all that stops PS from being a better shell in linuxland is some people writing PS-equivalents of all the small executables that ship with your linux distribution.
- pjmlp 8y agoPowershell is based on the REPL ideas of Lisp Machines and Smalltalk. - structured data - ability to call any public function across dynamic libraries, COM objects and .NET frameworks - Powershell modules can also be called as plain .NET code Which UNIX shell provides this?
- oblio 8y agoThe easiest way is to launch md5sum from Powershell. It's a shell, at the end of the day...