TinoGuo / r_crypto

🦀🦀 High performance Crypto library of Rust implementation for Flutter
MIT License
31 stars 8 forks source link
blake2 blake3 crypto dart digest flutter hash library md5 plugin rust sha1 sha2 sha3 whirlpool

pub package GitHub GitHub top language GitHub language count

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