,

Boost BTCRecover Performance in Ubuntu 22.04

Boost BTCRecover Performance in Ubuntu 22.04 (Fix ripemd160 support)

Boost BTCRecover Performance in Ubuntu 22.04 (Fix ripemd160 support)

If you are running BTCRecover on a newer Linux system and it suddenly feels slow, the problem may not be your wallet data or your hardware. It can be OpenSSL.

In this guide, I will show you how to fix a common performance issue caused by recent OpenSSL changes that make ripemd160 unavailable through Python’s normal hash path. When that happens, BTCRecover can still work, but it may fall back to a slower method and run at roughly one-third of its expected speed.

You can follow along with the video here: Watch the video.

This is especially useful if you are using Ubuntu 22.04, but the same idea should apply to other Linux systems and macOS setups where OpenSSL v3 hides ripemd160 behind its legacy provider.

BTCRecover error on Ubuntu 22.04 showing unsupported hash type ripemd160
Ubuntu 22.04 (OpenSSL v3) shows a Python traceback ending in: ValueError: unsupported hash type ripemd160

Why BTCRecover can become slow after an OpenSSL update

OpenSSL is a widely used cryptography library. Many tools depend on it, including Python programs and wallet recovery software like BTCRecover.

Recent changes in OpenSSL v3 have affected how some older or “legacy” hash functions are exposed. One of those is ripemd160. For Bitcoin-related work, this matters because ripemd160 is commonly used when processing addresses and related data.

If Python cannot access ripemd160 through OpenSSL’s normal path, tools may hit errors such as:

ValueError: unsupported hash type ripemd160

In some cases, the tool may still run after a workaround or update, but it will use a slower fallback. That is where you can see a big drop in performance.

For ordinary applications that only calculate a few hashes occasionally, this might not matter much. But for BTCRecover, which may need to process tens of thousands of address-related hashes per second during recovery work, the difference matters a lot.

BTCRecover GitHub commits page showing recent OpenSSL V3 related changes
Recent commits in the btcrecover repository include changes addressing OpenSSL v3 behavior

What you are trying to fix

The goal is simple: make ripemd160 available again to Python and, by extension, to BTCRecover.

You do this by editing the system OpenSSL configuration file so that OpenSSL loads both:

  • the default provider
  • the legacy provider

This does not remove security from your system. It simply makes an older hash function accessible through OpenSSL’s legacy support path.

After the fix, you should be able to verify that ripemd160 is available again and see BTCRecover performance return to levels similar to older Ubuntu/OpenSSL setups.

Step 1: Check whether ripemd160 is currently available

First, we need to confirm whether your system has the problem at all.

If you already have BTCRecover installed, I wrote a small helper script for this purpose. From inside your BTCRecover folder, run:

python3 check_ripemd160.py

If ripemd160 is unavailable through Python’s normal hash path, the script will tell you something like:

Bad News! RIPEMD160 not available

It may also mention that a slower pure-Python fallback will be used.

check_ripemd160.py reports RIPEMD160 is not available
Running python3 check_ripemd160.py shows that RIPEMD160 is unavailable via Hashlib

If you see this, the rest of the guide applies to your system.

Step 2: Find the OpenSSL configuration directory

Next, we need to locate the correct openssl.cnf file. On many Ubuntu systems, this will be in a standard location, but it is safer to ask OpenSSL directly rather than guessing.

Run:

openssl info -configdir

On the system shown in the video, this returned:

/usr/lib/ssl

That tells us where the OpenSSL configuration directory lives. The file we need inside that folder is usually openssl.cnf.

Finding the OpenSSL config directory with openssl info
The check script reports RIPEMD160 unavailable, then openssl info -configdir returns /usr/lib/ssl

Step 3: Open openssl.cnf for editing

Once you know the configuration directory, change into it and list its contents. For example, if your config directory is /usr/lib/ssl:

cd /usr/lib/ssl
ls

You should see a file named openssl.cnf.

Because this is a system-level file, you need elevated permissions to edit it. In the video, I use nano, which is simple and works well in a terminal:

sudo nano openssl.cnf

You will be prompted for your system password. This is normal when using sudo.

Editing /usr/lib/ssl/openssl.cnf in nano
nano opens the OpenSSL configuration file, showing provider section entries

Step 4: Enable the legacy provider in openssl.cnf

Inside openssl.cnf, scroll down until you find the provider-related sections. You are looking for a section similar to [provider_sect].

In that section, add a line so that the legacy provider is referenced alongside the default one. In practical terms, this means adding something like:

legacy = legacy_sect

This tells OpenSSL that there is a legacy provider configuration it should be able to load.

The reason for doing this is that ripemd160 is now treated as a legacy hash function in OpenSSL v3. Until the legacy provider is enabled, Python and other tools may not see it through the normal path.

Step 5: Make sure the default provider remains active

This part is important: you do not want to disable the default provider. You want both providers available.

Scroll down to the section that configures the default provider, often named something like [default_sect]. In that section, make sure the activation line is uncommented.

In other words, ensure it looks like this:

activate = 1

If it was commented out with leading characters such as #, remove those so the line is active.

Default provider section in openssl.cnf
The default provider entry should remain active while adding legacy support

Step 6: Create or update the legacy_sect section

Now add a new section for the legacy provider. This is what the legacy = legacy_sect line refers to.

Add a section like this:

[legacy_sect]
activate = 1

That enables the legacy provider.

At this point, your configuration should be doing two things:

  • keeping the default OpenSSL provider active
  • enabling the legacy provider so older hash functions such as ripemd160 become available again

Step 7: Save the file and exit nano

Once you have made the changes, save the file.

In nano:

  1. Press Ctrl + X
  2. When asked to save modified buffer, type or select Yes
  3. Press Enter to keep the same filename

You can now return to your BTCRecover folder and verify the fix.

Step 8: Verify that ripemd160 is available again

Run the check script again from your BTCRecover directory:

python3 check_ripemd160.py

This time, you should see a result confirming that ripemd160 is available and working through Python’s hash library.

Verification after editing openssl.cnf shows RIPEMD160 is available
After the config change, python3 check_ripemd160.py reports RIPEMD160 is available in Hashlib

If this works, BTCRecover should no longer need to rely on a slow fallback for that hash path.

Step 9: Confirm performance has improved

The real test is running BTCRecover and comparing the speed before and after the fix.

In the video, I ran a performance-oriented wallet check before making the change and again afterward. Before the fix, Ubuntu 22.04 with OpenSSL v3 was showing noticeably reduced throughput compared with an older system that did not need this workaround.

After enabling the legacy provider in openssl.cnf, the performance returned to levels similar to what I had seen on older setups using earlier OpenSSL versions.

BTCRecover running after the fix
BTCRecover launches again on Ubuntu 22.04 after ripemd160 support is restored

This matters because recovery work can be time-consuming. If your tool is only getting a fraction of its normal speed, even a small improvement in setup can save a lot of waiting later.

Why this fix helps more than just BTCRecover

Although this guide focuses on BTCRecover, the underlying issue affects anything on your system that needs ripemd160 through OpenSSL and Python.

If another tool you use started failing with an unsupported hash type error after an OS or library update, this same configuration change may help.

That said, not every affected project will behave exactly the same way. Some developers may choose to keep relying on OpenSSL-provided hashing, while others may move toward a pure-Python implementation if their workload does not require maximum speed. For tools that only perform these hashes occasionally, the performance penalty may be acceptable. For recovery tools like BTCRecover, it usually is not.

If you want more background, the OpenSSL GitHub issue referenced in the video discusses this behavior and links related reports from other projects. It is a useful place to look if you are trying to understand why the change happened or how different software responded.

OpenSSL GitHub issue about RIPEMD160
A closed OpenSSL GitHub issue titled: RIPEMD160 does not work

Security note before you edit system files

Before making any system-level change, it is worth being deliberate. You are editing a cryptography configuration file, so accuracy matters.

A few practical reminders:

  • Use sudo only for the specific command that needs elevated access.
  • Edit only the provider-related sections described here.
  • Keep the default provider active.
  • Save the file carefully and verify with the check script afterward.
  • If you are unsure, make a backup of openssl.cnf first if your workflow allows it.

This is not a “turn off security” change. It is a configuration adjustment to restore access to a legacy hash function that OpenSSL still supports through its legacy provider path.

What this means for future BTCRecover setups

As newer Ubuntu releases and other distributions become more common, handling OpenSSL v3 behavior like this will likely become part of normal setup work for performance-sensitive recovery tools.

Fortunately, once you know what to look for, the fix is straightforward:

  1. Check whether ripemd160 is available.
  2. Locate the correct OpenSSL config directory.
  3. Edit openssl.cnf with elevated permissions.
  4. Enable the legacy provider while keeping the default provider active.
  5. Verify that Python can use ripemd160 again.

After that, your system should be good to go for BTCRecover and other tools that depend on this hash function.

If you are stuck with a recovery project

If you have followed this guide but still cannot get BTCRecover installed correctly, or if you need help figuring out how to apply it to your specific wallet situation, you can leave a comment under the video and I will do my best to answer.

For more hands-on assistance, including private support or trusted recovery options depending on where you are in the process, see: recovery services and consultations.

Conclusion

A slow BTCRecover run can be frustrating, especially when you are trying to recover access to a wallet. In many cases on newer systems, the culprit is not your data or your hardware, but an OpenSSL configuration change that hides ripemd160 behind the legacy provider.

By checking availability with a small script and then updating openssl.cnf so both the default and legacy providers are active, you can restore normal performance without replacing your whole system. This is one of those fixes that takes only a few minutes once you know where to look, but makes a big difference when you need recovery tools to run as fast as they should.

Questions from viewers

Common questions from the comments on this video, with my answers.

Do I need to navigate to a specific 'works' folder to run the commands?

No, you can ignore any references to a 'works' folder. That was just where I had a patched version of BTCRecover during the recording. Since those patches are now part of the main repository, you should simply run the commands in the same folder where you successfully ran your initial tests.

Will my configuration changes persist if I use a live boot USB environment?

If you are running a live boot Ubuntu environment, it will wipe itself every reboot. This is actually what you want if you want to keep your seed secure, but it means you will have to re-apply the necessary commands or configurations each time you restart the system.

Is it safe to run BTCRecover on a computer connected to the internet?

You should never run BTCRecover or similar tools on an internet-connected PC. While the official code does not contain networking capabilities, there are plenty of malicious copies floating around. Even if you are using my repository, you should only run it offline to ensure you don't have other malware on your system that could exploit the process.

How many missing words can BTCRecover realistically recover?

Recovering more than four missing words is generally not practical because there are too many possibilities to brute-force. Recovering exactly four words is borderline; it would require high-end hardware and take months, so it is usually only worthwhile if the wallet holds a significant amount (e.g., $100k or more). For fewer missing words, such as two or three, recovery is much more feasible, though it may still take days depending on the complexity.

Which wallet type should I select in BTCRecover for multi-currency wallets like Trust Wallet?

You should select the wallet type that matches the specific address you are supplying to the tool. It is not about the brand name of the app, but rather the format of the address you have. If you provide the correct address type, the tool should be able to find the missing word quickly.

Can BTCRecover recover seeds from iPhone backup files?

Generally, no. Whether it is possible depends on the specific wallet, but for most common wallets like Trust Wallet, recovering from backup files is not supported by the tool.

Full video transcript

Auto-generated from the video and lightly corrected; timestamps open that moment on YouTube.

Intro 0:00

So there were recently changes in an open source library called OpenSSL, which has actually caused issues for tools like BTCRecover and a number of other open source tools. With folk now getting obscure errors like this one, essentially all boiling down to the fact that OpenSSL has changed the way that it supports RipeMD 160. I pushed some updates to fix this earlier on this month. So rather than giving you this message, it will at least work and throw you a warning telling you about this change. but the thing you'll notice is when we compare this new modified version to older system that didn't need the fix we can see that we're only getting about a third of the performance and that is not something anyone wants when you're doing a seed recovery fortunately the functionality is actually still there in OpenSSL and it's just a case of knowing how to turn it back on so basically what i'll be doing this video is just running through how to update the settings for OpenSSL so that ripemd160 is available to tools like python and by extension btc recover this process will be using ubuntu but i'll also be showing you how to do it in such a way that it should work for any linux or mac platform it's quite straightforward so let's get into it and if you haven't already done so hit subscribe that way you can stay in the loop for content i make to help you find your way in the crazy and often hostile environment that is cryptocurrency so let's jump into the command

Enabling Legacy Provider in OpenSSL 1:23

line so what we're going to do is firstly if you've got btc recover on the system i did just write a small script that can be used to check whether ripemd 160 is available by hashlib and you can just type in python 3 check underscore and it's called ripemd 160.py and if you enter it will actually tell you and again on this system it just tells us you know bad news ripemd 160 is not available via hashlib so sad face so what we're going to do is we're going to need to edit some open SSL configuration files. So the first thing you're going to want to do is just type in open SL info and we want to know where the configuration directory is. So we'll just say config dir and we can see here that that is the folder. This should pretty much always be the same on Ubuntu systems but if you're running some other distribution or if you've done something exotic on your setup you will want to use this command just to double check where the config folder and config file we want to edit actually is so we'll just copy that and then we'll navigate to that folder so cd space and i'll just paste that one i copied from just there hit enter and now that we're in that folder if i type in ls i can actually see there's a few files in there and the one that i want to edit is this one here openssl.cnf so i will just use nano because nano is easy to use and say sudo. So we're going to have to run this as a super user because this is sort of a system file and we'll say nano and then we'll paste openssl.cnf and hit enter. It's going to prompt you for your system password. This is just a test system I've got so something basic on there and then we're in. So this is the openssl configuration file and what we're going to do is we want to scroll down till we get to we're going to scroll down a bit until we get to this bit here where it has provider section which is the list of providers to load. Basically for those who are interested the ripemd160 is now considered a legacy sort of hash function so that's why we need to enable the legacy provider in open SSL before other tools like python can have access to it. So that's what we're going to do. So the first thing we're going to do is we'll just add another line after this default one here. It will also just say legacy = legacy_sect. And then we're going to scroll down a bit to where it says default sect. So we want to actually make sure we're still activating the default libraries as well. So we need to uncomment this line here. So remove the first two characters that were on activate equals one for default sect and then we're going to create a new section for legacy so legacy sect close brackets and also activate equals one and basically that's it we can just put a new line there so I'm just going to say ctrl x which is what I want to do to exit and then it will say save modify buffer I say yes we want to just use the same file name so just hit enter and there we go. So now if I actually just go back to my BTC Recover folder and if I type in the Python 3 check ripemd160 we can see good news. Ripemd160 is available and working in hashlib that can be used with BTC Recover. And now if we go back and run the commands that we ran at the very start which is just BTC Recover with a performance sort of wallet and we can see that the performance

Demostration of Performance Restored after Fix 5:25

that we are getting in Ubuntu 22 is now basically identical to the performance that we were getting before in Ubuntu 20.04 with OpenSSL version 1. So there you go, problem fixed. And the good news on this is this will not only fix BTC Recover, but also make RIPMD 160 available to anything else that you might happen to be running on your system that needs it. If you want to know more about it, your best bet is to look at this GitHub issue here on the OpenSSL GitHub repository and basically there's just some discussion about what's going on as well as you get a list of other projects where people have been having this issue as well as the same sort of documentation that I've just run through here. If you're someone who doesn't use BTC Recover but is watching this video because some other software you use was affected by this you know the question of whether it will actually be fixed in the software you're running they might move to a pure python implementation or not will really come down to the developers and will come down to what sort of performance they need for a lot of applications where you're only doing these hashes occasionally for sort of a wallet or transactions or things like that it might not matter very much but for tools like btc recover where you're trying to hash you know tens of thousands of these addresses every second this performance difference matters a lot so that pretty much covers it this is

Conclusion 6:44

something that will just become a standard part of the setup for btc recover in the future particularly as newer versions of both ubuntu and other distributions become more common but fortunately it's quite a straightforward fix once you've done the fix on your system you're pretty much good to go if you have any specific questions about this definitely just leave a reply in the comments i do my best to answer them all and if you're totally totally stuck either getting btc recover installed or trying to work out how to use it for your specific recovery you can jump onto my website, request some private support or even something like a trusted recovery depending on where you're at. So anyway stay safe and best of luck. Thanks for watching I hope that was helpful. Hit like if you think that other people would find this video useful and hit subscribe if you'd like to be kept in the loop about future content I make that helps people stay safe in the crypto space and to recover if they get into trouble. If you have any questions about this video or a topic that you'd like me to cover just leave a reply.

Related guides

Stuck with a wallet recovery?

I maintain BTCRecover and have helped people recover seed phrases, passphrases and wallet passwords since 2019. Book a one-hour video session and I’ll walk you through doing the recovery yourself, without sharing your seed. Or, if you’d rather I run it, a trusted recovery is charged only if it succeeds.

Private sessions: US$100 per hour. Trusted recovery: 10% of recovered funds. I never contact people first and will never ask for your seed phrase over chat or email.

Found this useful?

These guides are free and ad-free. You can support them by sharing them, subscribing on YouTube, or sending a tip.

Stuck on this?

Book a one-hour session and I’ll walk you through it, or ask about a trusted recovery.

Recovery guides

More guides