1

My Problem

I am trying to generate a QR code for a public bitcoin address, preferably using command-line tools. The process poses a security risk because malicious software can generate a QR code that represents an address different than the one given as input.

What Have I Tried

Searching this site and Github. I only found some unmaintained repos with very low usage.

My Question

How can I securely generate a QR representation for a bitcoin address from the command, using open-source software I can trust?

2

Use any software you normally use to create QR codes. Ask it to create QR for text bitcoin:<address>.

That's all you need: a QR generation tool you trust.

1
  • Fantastic, thanks! – Adam Matan Nov 28 '20 at 9:24
1

A simple approach to this problem is simply to check each and every QR code that the software you want to use creates. You already know what the address you're supposed to be encoding is, so once you have the QR code, just scan it with a QR scanner and compare the output to your input. Of course, they should match.

A word of warning: there is a long history of scammers creating 'Bitcoin QR Code' making apps. As a naive user, this sounds great, but really its just the scammer's way of luring bitcoin users towards their fraudulent software. I would actively avoid any QR software which is marketed towards bitcoin users in this way - just your run of the mill QR code generating software should work just fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.