Skip to main content

daravel_teobiefy 1.25.0 copy "daravel_teobiefy: ^1.25.0" to clipboard
daravel_teobiefy: ^1.25.0 copied to clipboard

teobiefy for Daravel. Encrypted API payloads compatible with teobiefy's protocol v1 on Laravel - X25519 session handshake (libsodium crypto_kx) and ChaCha20-Poly1305 IETF.

example/example.dart

import 'package:daravel_teobiefy/daravel_teobiefy.dart';

void main() async {
  // Generate an ephemeral X25519 keypair for secure handshake
  final serverPair = await TeobiefyCrypto.newKeyPair();
  final serverPub = await serverPair.extractPublicKey();

  print(
    'Teobiefy Ephemeral Server Public Key ready (${serverPub.bytes.length} bytes)',
  );

  // Configuration for teobiefy session lifecycle
  const config = TeobiefyConfig(
    sessionTtl: Duration(minutes: 30),
    strictPayload: true,
  );

  print('Session TTL: ${config.sessionTtl.inMinutes} minutes');
  print('Strict payload enforcement: ${config.strictPayload}');
}
0
likes
160
points
648
downloads

Documentation

Documentation
API reference

Publisher

verified publisherframework.daravel.dev

Weekly Downloads

teobiefy for Daravel. Encrypted API payloads compatible with teobiefy's protocol v1 on Laravel - X25519 session handshake (libsodium crypto_kx) and ChaCha20-Poly1305 IETF.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#encryption #libsodium #chacha20 #x25519 #backend

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

crypto, cryptography, daravel

More

Packages that depend on daravel_teobiefy