recentpopularlog in

kme : hash   18

Hashing it Out in PowerShell: Using Get-FileHash |
Windows 7, even with all the updates, only has PowerShell 2.0, so no 'get-filehash' for Windows 7.
PowerShell 4.0 introduced a new cmdlet, Get-FileHash, primarily for use with Desired State Configuration (DSC). In a pull server configuration, you need to provide file hashes so that servers can recognize changes. That is the primary purpose of a file hash as far as I am concerned is for file integrity. Windows supports several different hashing algorithms, which you should not confuse with encryption.
powershell  hash  checksum  crypto  windows  win7  shellscripting 
7 weeks ago by kme
How to View a Certificate Fingerprint as SHA-256, SHA-1 or MD5 using OpenSSL
How to View a Certificate Thumbprint as SHA-256, SHA-1 or MD5 using OpenSSL How to View a Certificate Fingerprint as SHA-256, SHA-1 or MD5 using OpenSSL
openssl  x509  crypto  ssl  certificate  sha1  sha256  hash  fingerprint  commandline  solution 
june 2019 by kme
Check and verify md5/sha1/sha256 checksums for MacOS X when I download files - nixCraft |
The solution is to check `uname -s` == "Darwin" and use `shasum -a 1` instead of `sha1sum`, which only exists on Linux
mac  osx  macos  security  checksum  hash  sha1  workaround  solution 
january 2019 by kme
Calculating checksums with CertUtil – Jan Christiansen's technical blog |
Among the supported hash algorithms are MD5, SHA1 and SHA256.

Be aware that the hash algorithm has to be in uppercase or the command can fail with:
CertUtil: -hashfile command FAILED: 0xd00000bb (-805306181)
CertUtil: WsResetMetadata
windows  sighmicrosoft  hash  checksum  errormessage  solution 
october 2018 by kme
hashing - Is there a built-in checksum utility on Windows 7? - Super User
CertUtil is a pre-installed Windows utility that can be used to generate hash checksums:

<code>certUtil -hashfile pathToFileToCheck [HashAlgorithm]
HashAlgorithm choices: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512</code>

So for example, the following generates an MD5 checksum for the file C:\TEMP\MyDataFile.img:

<code>CertUtil -hashfile C:\TEMP\MyDataFile.img MD5</code>

To get output similar to *Nix systems you can add some PowerShell magic:

<code style="language-powershell">$(CertUtil -hashfile C:\TEMP\MyDataFile.img MD5)[1] -replace " ",""</code>
windows  hashing  checksum  hash  md5  sha1  commandline  utility  software  solution 
april 2018 by kme
bitbucket - Smartgit SHA fingerprint of the certificate does not match - Stack Overflow
What I was flipping out about was actually the SHA1 hash for the SSL cerficate for the GitLab host, *not* the SHA1 SSH host fingerprint.

I wasn't getting man-in-the-middled by SmartGit after all.
syntevo  smartgit  ssl  sha1  certificate  hash  solution 
october 2017 by kme
Random hash in Python - Stack Overflow
A md5-hash is just a 128-bit value, so if you want a random one:

import random

hash = random.getrandbits(128)

print "hash value: %032x" % hash

I think what you are looking for is a universal unique identifier.Then the module UUID in python is what you are looking for.

import uuid
python  random  hash  uuid  solution 
february 2017 by kme

Copy this bookmark:

to read