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

outdatedDart 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
20
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

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