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

Dart 1 only

A wrapper of selected parts of the webcrypto API to 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
15
pub points
0%
popularity

Publisher

unverified uploader

A wrapper of selected parts of the webcrypto API to dart

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

browser_detect, crypto

More

Packages that depend on dart_webcrypto