Giter VIP home page Giter VIP logo

Comments (5)

flashultra avatar flashultra commented on June 9, 2024

Yes, it should works. The only problem will be a specific bugs in haxe3 ( at example in php target and maybe eval). There is nothing specific in use from Haxe 4.

from crypto.

kevinresol avatar kevinresol commented on June 9, 2024

There some haxe 4 features in the Sha*** classes (extern keyword and haxe.io.Encoding)

from crypto.

flashultra avatar flashultra commented on June 9, 2024

Extern in Sha256 is from original haxe crypto branch ( https://github.com/HaxeFoundation/haxe/blob/development/std/haxe/crypto/Sha256.hx )
About Encoding, yes you a right. I added that option so different encoding can be used in Bytes.ofString method.
There are some solution for both problems:

  1. Discard support for Haxe 3
  2. Add compiler flag to support Haxe 3
  3. Remove extern and Encoding.
    I think all other classes should works. The main question is how widely use will be Haxe 3 i.e Sha224 and Sha256 exist in haxe.crypto package in Haxe 3.XX and obviously at the moment no one looking for Sha384 and Sha512 in Haxe3.

from crypto.

grepsuzette avatar grepsuzette commented on June 9, 2024

There is use for Sha512 even in Haxe 3. I had been using some ugly calls to the system for that before using your classes. Iā€™m sure there are others in the same boat.

It would be a shame given the very minor adjustments and the great work done here to not make this package compatible with Haxe 3. Even though we can always fork the repo and make the adjustements ourself (did that myself and I hate it for the reason that follows), those classes are about security, and in the end it's critical for not missing updates that we don't encourage having many forks in the wild by not supporting Haxe 3.

Haxe 4 is just sugar (and not yet stable), the features provided by those classes on the other hand are critical for some tasks. Supporting both (even partially, but still with the ShaXXX) would be ideal.

from crypto.

flashultra avatar flashultra commented on June 9, 2024

All classes are now compatible ( see pull request #11)

from crypto.

Related Issues (16)

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.