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

Secure stateless cookie session for Dart. It is a simple and secure way to manage user sessions in web applications.

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(
    options: SessionOptions(
      secret: 'secret',
      salt: 'salt',
      cookieName: 'cookie',
    )
  );

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

  session.write(data, 'cookie');

  final result = session.read('cookie');

  print(result); // {key: value}
}
2
likes
160
pub points
31%
popularity

Publisher

verified publisherserinus.app

Secure stateless cookie session for Dart. It is a simple and secure way to manage user sessions in web applications.

Repository (GitHub)
View/report issues

Topics

#secure #session #http #server

Documentation

API reference

License

MIT (license)

Dependencies

crypto, encrypt

More

Packages that depend on secure_session