crabka-security 0.3.2

TLS, SASL, SCRAM, OAuth, and Kerberos security utilities for Crabka
Documentation

crabka-security

Crates.io Docs.rs CI

TLS, SASL, SCRAM, OAuth, and Kerberos security utilities for Crabka.

This crate is part of Crabka, a Rust implementation of Kafka-compatible infrastructure and clients.

Install

crabka-security = "0.3.2"

For workspace development, use the path dependency from this repository instead.

Usage example

Build a SCRAM client exchange and produce the client-first message sent on the Kafka SASL channel:

use crabka_security::{SaslMechanism, ScramClientExchange};

let mut exchange = ScramClientExchange::new(
    "alice".to_string(),
    b"correct horse battery staple".to_vec(),
    SaslMechanism::ScramSha256,
);
let first = exchange.client_first().unwrap();
println!("send SCRAM client-first-message: {}", String::from_utf8_lossy(&first));

Documentation

API documentation is published on docs.rs/crabka-security. The repository README contains project-wide setup, development, and release notes.

License

Apache-2.0. See the repository LICENSE and NOTICE files for details.