Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/Win10 Secret

Created April 3, 2018 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/3eb148323098d80088ff3ef1bc46eeca to your computer and use it in GitHub Desktop.
Save zoffixznet/3eb148323098d80088ff3ef1bc46eeca to your computer and use it in GitHub Desktop.
C:\rakudo>perl6 -e "run('CertUtil.exe', '-hashfile', 'foo bar test.c', 'SHA256', :out, :!err).out.slurp(:close).subst(:g, ' ', '').lines.grep(/^<:hexdigit> ** 64$/).head.say"
7c29dfc0784ddfa8e5af1fd917581ee2acd954c40136835a64c8edf7d1f96f9f
C:\rakudo>
C:\temp>perl6 -e "run('CertUtil.exe', '-hashfile', 'test.txt', 'SHA256', :out, :
!err).out.slurp(:close).subst(:g, ' ', '').lines.grep(/^<:hexdigit> ** 64$/).hea
d.say"
ab710ade21c6db99462eedbf63fb4ab0f5b5e991d000828a802071166af9a5ca
C:\temp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment