Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

High performance Crypto library of Rust implementation for Flutter

r_crypto

Rust backend support crypto flutter library, much faster than Dart-implementation library, light-weight library.

Some crypto support hardware accelerate.

Support Algorithm

Hashes

More digest will support soon.

Support Platform

Example Usage

Hash

import 'package:r_crypto/r_crypto.dart';

// For fixed output length digest
rHash.hashString(HashType.MD5, input);
// For dynamic output length digest
rHash.hashString(HashType.blake3(length: 64), input);
// Also accept List<int> as parameter
rHash.hashList(HashType.KECCAK_224, [0,1,2]);
// Hash File
rHash.filePath(HashType.blake3(length: 32), path);

// Encode the list
hex.encode(list);

Note

TODO

Download Crypto library source code on GitHub

Exit mobile version