Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: RocketBot on March 19, 2019, 06:27:09 PM



Title: Safest way to embed QR code to website/emails after Google charts depreciated?
Post by: RocketBot on March 19, 2019, 06:27:09 PM
As Google Image Charts is being turned off (https://groups.google.com/forum/#!topic/google-chart-api/rZtHTyYgyXI), what's a reliable way to generate these images? Obviously I don't want to use any site that can't be trusted.


Title: Re: Safest way to embed QR code to website/emails after Google charts depreciated?
Post by: jackg on March 19, 2019, 08:59:56 PM
You could potentially use a site such as imgur.com to achieve this if you don't host your own website.
Alternatively, you could upload your images to Google drive (or Facebook) and get the image url from there which can then be shared.


Title: Re: Safest way to embed QR code to website/emails after Google charts depreciated?
Post by: poordeveloper on March 19, 2019, 09:10:34 PM
It is/was actually unsafe and privacy-harming to use Google charts (and any other API for that matter) for generating QR codes on anything related to cryptocurrency.

You can generate QR codes browser-side with a Javascript library like https://davidshimjs.github.io/qrcodejs/

It's extremely easy to use. Make sure you self-host the .js file to avoid any potential attacks.


Title: Re: Safest way to embed QR code to website/emails after Google charts depreciated?
Post by: Foxpup on March 20, 2019, 06:04:10 AM
I've always just used qrencode, which is a standalone program available for Linux (https://fukuchi.org/works/qrencode/index.html.en) and Windows (https://code.google.com/archive/p/qrencode-win32/). I also use ZBar (http://zbar.sourceforge.net/) to verify the generated QR codes. It never occurred to me to use a web app for this.