Giter VIP home page Giter VIP logo

Comments (8)

ia0 avatar ia0 commented on July 20, 2024

Yes, data-encoding will add this in v2.0.0 which is currently in progress. However I have a few questions:

  • Do you need decode to also support uppercase letters? In other words, is 38a9F1 a valid hex encoding? (v2.0.0 will support this optionally in a case-insensitive setting)
  • Do you need this feature before May 2017? (I suspect v2.0.0 to be ready during April/May 2017. If you don't need a case-insensitive decode then I can add a hex_low module handling this in v1.3.0 tonight)

from data-encoding.

sbant avatar sbant commented on July 20, 2024

I feel mix lower and upper case is not needed(never saw in other implemention)
currently, I use rustc_serailize::hex withour problem, but wish can get rid of it.

from data-encoding.

dbrgn avatar dbrgn commented on July 20, 2024

v2.0.0 will support this optionally in a case-insensitive setting

Yeah, looking forward to that!

from data-encoding.

ia0 avatar ia0 commented on July 20, 2024

@sbant You can now use the HEXLOWER constant of v2.0.0-rc.1. You would typically use it like HEXLOWER.encode(input) and HEXLOWER.decode(input).

@dbrgn There is now a HEXLOWER_PERMISSIVE constant in v2.0.0-rc.1 that works as HEXLOWER but also accepts upper-case. Note that with v2.0.0-rc.1 you can easily define you own encoding and get the exact same performance as the predefined ones.

The v2.0.0-rc.1 will move to v2.0.0 in about one month depending on feedback.

from data-encoding.

lucab avatar lucab commented on July 20, 2024

@ia0 is the v2 ETA still end of May?

from data-encoding.

ia0 avatar ia0 commented on July 20, 2024

@lucab No. I am working on an rc2 that unifies the NoPad and Padded types and allows to ignore characters during decoding. I don't know yet when I'll be done (prototype is done though). It will probably be out before end of June, but I am not sure I'll have enough time.

from data-encoding.

lucab avatar lucab commented on July 20, 2024

I see. No hurry, and thanks for the status update!

from data-encoding.

ia0 avatar ia0 commented on July 20, 2024

Quick update on this issue. I released v2.0.0-rc.2 which should be the last candidate before v2.0.0 is released (before end of year).

I'm closing the issue since it should be fully solved by v2.0.0-rc.2.

from data-encoding.

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.