dart_webcrypto 0.0.1 copy "dart_webcrypto: ^0.0.1" to clipboard
dart_webcrypto: ^0.0.1 copied to clipboard

outdatedDart 1 only

A wrapper of selected parts of the webcrypto API for Dart

dart-webcrypto #

This is a wrapper library to easily make the webcrypto capabilities available in Dart. Currently only hash functions available, where also a native Dart implementation is available.

If the selected browser does not support webcrypto API the library falls back to native Dart implementations.

Unfortunetaly the promise based webcrypto interface is not compatible with the synchronous native Hash interface.

var h = new SHA1();
h.add(UTF8.encode("hashme"));
h.close().then((List<int> digest){
    print(CryptoUtils.bytesToHex(digest));
});
0
likes
0
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

A wrapper of selected parts of the webcrypto API for Dart

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

browser_detect, crypto

More

Packages that depend on dart_webcrypto