Questions tagged [ripemd]

23 questions
10
votes
1 answer

Unsupported hash type ripemd160 with hashlib in Python

After a thorough search, I have not found a complete explanation and solution to this very common problem on the entire web. All scripts that need to encode with hashlib give me error: Python 3.10 import hashlib h =…
Pep3 Márquez
  • 183
  • 2
  • 7
3
votes
1 answer

How to enable the OpenSSL 3.0 legacy provider Github Actions?

OpenSSL deprecated a set of hash functions in the 3.0 release. (See OpenSSL_3.0#Provider_implemented_digests.) For a library I maintain, I need some of them for backward compatibility, e.g., RIPEMD160. However, since OpenSSL 3.0 gets rolled out…
q9f
  • 11,293
  • 8
  • 57
  • 96
3
votes
3 answers

RIPEMD-160 vs SHA-256

Can anyone shed some light into SHA-256 and RIPEMD-160, which algorithm is normally faster and what are the performance and space comparisons, if any? By space comparisons I don't mean 160 bits and 256 bits, but what are the collisions frequency,…
Priyank Bolia
  • 14,077
  • 14
  • 61
  • 82
2
votes
1 answer

SHA256 and RIPEMD160HASH in c program

I wrote a c program to perform sha256 hash on a char array and then perform ripemd160 hash on the output of sha256 hash function. here is my code: #include #include #include #include int…
AB Music Box
  • 81
  • 1
  • 6
2
votes
1 answer

A custom directory/folder merge tool

I am thinking about developing a custome directory/folder merge tool as part of learning functional programming as well as to scratch a very personal itch. I usually work on three different computers and I tend to accumulate lots of files (text,…
Ravi S
  • 231
  • 1
  • 5
  • 11
2
votes
1 answer

Padding RIPEMD 160

Does RIPEMD 160 have a padding scheme that is identical to SHA-2 (to the point I could share a method I already write that works with it)? The documentation doesn't make it entirely clear. I've gone over all documentation and code I've found and I'm…
Ghost
  • 103
  • 4
2
votes
0 answers

Is this a correct ripemd160 core function? (in python)

Possible Duplicate: what is wrong with my ripemd160 python code? Assuming that everything else (functions, constants, etc) are correct, is this a correct main loop of ripemd160 for python? for j in range(80): T = (a+ ROL( (F(b, c, d, j) +…
calccrypto
  • 131
  • 2
  • 5
2
votes
2 answers

Pure lua hashing, RIPEMD160 or SHA2?

Are there any implementations of these hashing algorithms in pure lua? I've found a couple for MD5 and SHA1 but none for these two which are the ones I'll be needing for a project. In the interests of portability, I need something in pure lua.…
Zmoneaux
  • 21
  • 2
1
vote
1 answer

Detection of available non-standard hash algorithms using hashlib in Python

According to the Python documentation, only a few hash algorithms are guaranteed to be supported by the hashlib module (MD5 and SHA***). How would I go about detecting if other algorithms are available? (like RIPEMD-160) Of course, I could try to…
cgt
  • 526
  • 6
  • 18
1
vote
1 answer

CTF Type Juggling with ripemd160 hash

I am trying to solve a CTF in which the juggling type should be used. The code is: if ($_GET["hash"] == hash("ripemd160", $_GET["hash"])) { echo $flag; } else { echo "

Bad Hash

"; } I made a script in python which checks random…
1
vote
1 answer

Unpacking ripemd160 result in python

I am working on a program which does a lot of hashing, and in one of the steps I take a result of hashlib's ripemd160 hash and convert it into an integer. The lines are: ripe_fruit = new('ripemd160', sha256(key.to_der()).digest()) key_hash160 =…
purple_dot
  • 106
  • 2
  • 9
1
vote
3 answers

Another approach to apply RIPEMD in CSV file

I am looking for another approach to apply RIPEMD-160 to the second column of a csv file. Here is my code awk -F "," -v env_var="$key" '{ tmp="echo -n \047" $2 env_var "\047 | openssl ripemd160 | cut -f2 -d\047 \047" if ( (tmp | getline…
Houssem
  • 23
  • 5
1
vote
3 answers

Create a hashvalue using a custom key and the algorithm ripemd160

Here's the code I tried in Python but I get AttributeError: >>> import hmac >>> import hashlib >>> h=hashlib.new('ripemd160') >>> hmac.new("bedford","Hello",hashlib.ripemd160) Traceback (most recent call last): File "", line 1, in…
Sankar
  • 21
  • 1
1
vote
1 answer

C++ OpenSSL Ripemd-160 gives wrong output

I am trying to build small app to generate Bitcoin Address (for sake of understanding). I use OpenSSL library. I managed to convert private key to public key, hashed public key with sha256, and result was fine. But, then, problem appears when I try…
RogerT
  • 61
  • 1
  • 7
1
vote
2 answers

what is wrong with my ripemd160 python code?

everything i have tried has given me wrong output values. i even copied C codes and changed them so that they would work in python and i still get wrong outputs. what is wrong? import os, math def makehex(value,size=8): value = hex(value)[2:] …
calccrypto
  • 131
  • 2
  • 5
1
2