Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (5 sloc) 2.13 KB
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\calchashes]
@="Calculate MD5/SHA1"
[HKEY_CLASSES_ROOT\*\shell\calchashes\command]
@="\"C:\\Python27\\pythonw.exe\" \"-c\" \"exec 'aW1wb3J0IHN5cwpNQl9TRVRGT1JFR1JPVU5EID0gMHgxMDAwMApmcm9tIGN0eXBlcyBpbXBvcnQgUE9JTlRFUiwgYnlyZWYsIGNkbGwsIGNfaW50LCB3aW5kbGwKZnJvbSBjdHlwZXMud2ludHlwZXMgaW1wb3J0IExQQ1dTVFIsIExQV1NUUgppbXBvcnQgaGFzaGxpYgoKQkxPQ0tfU0laRSA9IDB4MTAwMDAwCgpkZWYgd2luMzJfdW5pY29kZV9hcmd2KCk6CiAgICAiIiJVc2VzIHNoZWxsMzIuR2V0Q29tbWFuZExpbmVBcmd2VyB0byBnZXQgc3lzLmFyZ3YgYXMgYSBsaXN0IG9mIFVuaWNvZGUKICAgIHN0cmluZ3MuCgogICAgVmVyc2lvbnMgMi54IG9mIFB5dGhvbiBkb24ndCBzdXBwb3J0IFVuaWNvZGUgaW4gc3lzLmFyZ3Ygb24KICAgIFdpbmRvd3MsIHdpdGggdGhlIHVuZGVybHlpbmcgV2luZG93cyBBUEkgaW5zdGVhZCByZXBsYWNpbmcgbXVsdGktYnl0ZQogICAgY2hhcmFjdGVycyB3aXRoICc/Jy4KICAgICIiIgoKCiAgICBHZXRDb21tYW5kTGluZVcgPSBjZGxsLmtlcm5lbDMyLkdldENvbW1hbmRMaW5lVwogICAgR2V0Q29tbWFuZExpbmVXLmFyZ3R5cGVzID0gW10KICAgIEdldENvbW1hbmRMaW5lVy5yZXN0eXBlID0gTFBDV1NUUgoKICAgIENvbW1hbmRMaW5lVG9Bcmd2VyA9IHdpbmRsbC5zaGVsbDMyLkNvbW1hbmRMaW5lVG9Bcmd2VwogICAgQ29tbWFuZExpbm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