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

outdated

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

Steel Crypt #


General #

A simple library of high-level API's and sugar for PointyCastle/encrypt. This library currently supports both hashing and two-way encryption:

2-Way

  • AES with PKCS7 Padding ('AES') (Default)
  • Salsa20 ('Salsa20')
  • More coming...

Hashing

  • SHA-3 ('SHA-3') (Default)
  • Blake2B ('Blake2b')
  • MD5 ('MD5')
  • SHA-1 ('SHA-1')
  • SHA-512 ('SHA-512)
  • SHA-256 ('SHA-256')
  • Whirlpool ('Whirlpool)
  • and more... (Find the full list of exposed hashes at PointyCastle.)

Usage #

A simple usage example:

import 'package:steel_crypt/steel_crypt.dart';

main() {
  
  var key = CryptKey().genKey();

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

  var hasher = HashCrypt('SHA-3');


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

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

  print(encrypter.decrypt(encrypter.encrypt('word')));

  print(key);
  
}

Notes #

  • Use in production AT YOUR OWN RISK.
  • This is a work-in-progress, but will be actively maintained.
  • Please file feature requests and bugs at the issue tracker.

TODO's #

  • Create Project + add "Starter Set" of algorithms
  • Add more, different 2-way encryption algorithms + packaging options
  • Tackle adding an RSA solution OR expose encrypt's RSA
  • Create a more complete password solution
  • Add more detailed example
Licensed under the Mozilla Public License 2.0
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

encrypt, pointycastle

More

Packages that depend on steel_crypt