secure_session 1.0.1 copy "secure_session: ^1.0.1" to clipboard
secure_session: ^1.0.1 copied to clipboard

A secure session manager for Dart.

secure_session #

Secure stateless cookie session

Installation #

dart pub add secure_session

Usage #

import 'package:secure_session/secure_session.dart';

void main() {
  final session = SecureSession(
    secret: 'secret',
    cookieName: 'cookie',
  );

  final data = {'key': 'value'};

  session.write(data);

  final result = session.read();

  print(result); // {key: value}
}