Skip to content

Instantly share code, notes, and snippets.

@sunnyc7
Last active August 29, 2015 13:56
Show Gist options
  • Save sunnyc7/9274589 to your computer and use it in GitHub Desktop.
Save sunnyc7/9274589 to your computer and use it in GitHub Desktop.
Ripe MD Implementation in Powershell.

RIPMEMD160 hashing in Powershell.

RipeMD supports avalanche effect, whereas a small change in the original input results in a significant change in the hash. Also a zero-length string has a hash. (But it was difficult for me to implement a zero-bytes input, around the Get-Bytes class.)

The MSDN page suggests that RIPEMD160 class is supported in .Net 2.0 Framework. This gives me a nice little hashing mechanism which is not MD5. (This is a feature request)

Here is an interesting discussion on which hashing algorithim should you choose. http://stackoverflow.com/questions/800685/which-cryptographic-hash-function-should-i-choose

Here is the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment