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

Hashes, Hmacs, Argon2 Passwords and AES-GCM-SIV encryption. Digests for sha1, sha2, md5, blake3, crc32

example/rust_crypto_example.dart

import 'dart:convert' show Utf8Encoder;

import 'package:rust_crypto/rust_crypto.dart';

Future<void> main() async {
  final rustCrypto = await rustCryptoInstance(
    wasiConfig: WasiConfig(preopenedDirs: [], webBrowserFileSystem: {}),
  );
  final bytes = const Utf8Encoder().convert('hello world');
  print('"hello world" sha256: ${rustCrypto.sha2.sha256(bytes: bytes)}');
  print('"hello world" sha512: ${rustCrypto.sha2.sha512(bytes: bytes)}');
}
0
likes
160
pub points
20%
popularity

Publisher

unverified uploader

Hashes, Hmacs, Argon2 Passwords and AES-GCM-SIV encryption. Digests for sha1, sha2, md5, blake3, crc32

Repository (GitHub)
View/report issues

Topics

#wasm #wit #crypto #password #encryption

Documentation

API reference

License

MIT (LICENSE)

Dependencies

wasm_run, wasm_wit_component

More

Packages that depend on rust_crypto