Comments (5)
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.
There some haxe 4 features in the Sha*** classes (extern
keyword and haxe.io.Encoding
)
from crypto.
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:
- Discard support for Haxe 3
- Add compiler flag to support Haxe 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.
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.
All classes are now compatible ( see pull request #11)
from crypto.
Related Issues (16)
- Travis : Type not found : haxe.crypto.Aes HOT 3
- Does it support Aes-256 bit HOT 2
- Incorrect result for AES CTR 128 Bit HOT 7
- Error "haxe.io.Bytes should be String" HOT 3
- SHA-256 is wrong on PHP (new Haxelib release needed) HOT 8
- Haxelib says latest version is 1.0.2-alpha, but 0.4.0 was published more recently? HOT 2
- Need PKCS5 Padding HOT 6
- Haxe-crypto HOT 9
- [Neko specific issue] Uncaught exception - load.c(398) : Invalid module : main.n HOT 4
- Sha256 Unicode test failed HOT 7
- BCrypt is too slow HOT 10
- [eval] Ripemd-160 test failed on Appveyor HOT 2
- [feature request] rsa support HOT 4
- Publish on haxelib HOT 2
- Use Vector instead of Array HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crypto.