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

A Dart library for encrypting and decrypting messages using the Fernet scheme.

example/fernet.dart

import 'dart:convert';
import 'dart:typed_data';

import 'package:fernet/fernet.dart';

void main() {
  final Fernet f = Fernet(Fernet.generateKey());
  final Uint8List token =
      f.encrypt(utf8.encode('A really secret message. Not for prying eyes.'));

  print(utf8.decode(f.decrypt(token)));
  // OUTPUT: 'A really secret message. Not for prying eyes.'
}
1
likes
0
pub points
59%
popularity

Publisher

verified publisherpanda.observer

A Dart library for encrypting and decrypting messages using the Fernet scheme.

Repository (GitHub)
View/report issues

Topics

#crypto #cryptography #encryption #security

Funding

Consider supporting this project:

www.buymeacoffee.com

License

unknown (license)

Dependencies

pointycastle

More

Packages that depend on fernet