Giter Site home page Giter Site logo

Comments (2)

leMaik avatar leMaik commented on August 11, 2024 2

I'm concerned about this too, as I couldn't figure out where this code comes from.

  1. The library this is based on also has the same obfuscated code
  2. The original library mentioned in the comment above that blob has non-obfuscated but slightly different content (even if it is similar in structure): https://github.com/kazuhikoarase/qrcode-generator/blob/master/js/qrcode.js
  3. This version from jquery-qrcode looks identical to the obfuscated code in this library but instead of QRCodeModel it uses QRCode.

Both libraries (2, 3) are missing the QRCodeLimitLength variable though.


Edit: I pretty-printed the obfuscated code with Prettier and compared the three versions. This version is nearly identical to the non-obfuscated version from [3] but with support for utf8 characters from [1]. Unlike this version, however, [3] can determine the type number automatically depending on the data length (ie. kazuhikoarase/qrcode-generator#41 from [2]).

I'll create a repo with the diffs for transparency and submit a PR. Done: https://github.com/leMaik/qrcode-svg

from qrcode-svg.

viomck avatar viomck commented on August 11, 2024 2

Thank you @leMaik!

from qrcode-svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.