Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And people say that PowerShell isn't readable or intuitive.


You can also do it like this:

  "foobar" | Out-File password.txt -Encoding ASCII -NoNewline

  Get-FileHash password.txt -Algorithm SHA1

  del password.txt
That's readable and intuitive, but the downside is it puts your password in a file.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: