steel_crypt 0.2.1 copy "steel_crypt: ^0.2.1" to clipboard
steel_crypt: ^0.2.1 copied to clipboard

outdated

A collection of high-level API's exposing PointyCastle/encrypt to perform hashing and encrypting in popular/secure algorithms.

example/example.dart

import 'package:steel_crypt/steel_crypt.dart';

main() {

  var key = CryptKey().genKey();

  var encrypter = Crypt(key, 'Salsa20');

  var hasher = HashCrypt('sha256');

  var hasher2 = HashCrypt('sha256');

  var iv = CryptKey().genIV(16);


  print(key);

  print(hasher.hash('word'));

  print(hasher.hashHMAC('word', key));

  print(encrypter.encrypt('word', iv));

  String crypted = encrypter.encrypt('word', iv);

  print(encrypter.decrypt(crypted, iv));

}
70
likes
0
pub points
92%
popularity

Publisher

verified publisherkishoredev.live

A collection of high-level API's exposing PointyCastle/encrypt to perform hashing and encrypting in popular/secure algorithms.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

crypto, encrypt

More

Packages that depend on steel_crypt