Giter Club home page Giter Club logo

Comments (4)

jedisct1 avatar jedisct1 commented on May 10, 2024 2

It's not pretty, but:

https://stamp.dnscrypt.info/

Source code here

Maybe someone can make a CSS to make it look better?

from dnscrypt-proxy.

jedisct1 avatar jedisct1 commented on May 10, 2024

The Stamps format is documented here: https://github.com/jedisct1/dnscrypt-proxy/wiki/Stamps

Any React or Vue.js developer here? :)

from dnscrypt-proxy.

jedisct1 avatar jedisct1 commented on May 10, 2024

If it can help, here's something that computes a DNSCrypt stamp, from a quick and dirty attempt at writing a Vue component. props and addr are the same as for DoH stamps, so I moved them outside of the specialized function.

    stamp: function() {
      let props = (this.dnssec << 0) | (this.nolog << 1) | (this.nofilter << 2);
      let addr = this.addr.split("").map(c => c.charCodeAt());

      const dnscryptStamp = () => {
        let v = [0x01, props, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
        v.push(addr.length, ...addr);
        let pk = Buffer.from(this.pk.replace(/[: \t]/g, ""), "hex");
        v.push(pk.length, ...pk);
        let providerName = this.providerName.split("").map(c => c.charCodeAt());
        v.push(providerName.length, ...providerName);
        return `sdns://${URLSafeBase64.encode(Buffer(v))}`;
      };
      return dnscryptStamp();
    }

from dnscrypt-proxy.

jedisct1 avatar jedisct1 commented on May 10, 2024

Ok, looks like nobody will help with the CSS.

Closing.

from dnscrypt-proxy.

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.