#hashing #flow #hash

community-id

This package provides a Rust implementation of the open Community ID flow hashing standard

8 releases

0.2.4 Sep 17, 2025
0.2.3 Jun 19, 2024
0.2.2 Oct 7, 2023
0.2.1 Aug 11, 2023
0.1.2 May 14, 2023

#326 in Network programming

Download history 132299/week @ 2025-09-21 132340/week @ 2025-09-28 136845/week @ 2025-10-05 130189/week @ 2025-10-12 111968/week @ 2025-10-19 150901/week @ 2025-10-26 152080/week @ 2025-11-02 147813/week @ 2025-11-09 161675/week @ 2025-11-16 51427/week @ 2025-11-23 73450/week @ 2025-11-30 274137/week @ 2025-12-07 218259/week @ 2025-12-14 44605/week @ 2025-12-21 28476/week @ 2025-12-28 198131/week @ 2026-01-04

491,421 downloads per month
Used in 2 crates (via vrl)

MIT/Apache

34KB
902 lines

rs-community-id

This package provides a Rust implementation of the open Community ID flow hashing standard.

Community ID

"Community ID" is a separate specification for generating a likely-unique identifier for a network connection proposed by Corelight (the company behind Bro/Zeek). See community-id-spec

Usage

# Cargo.toml
[dependencies]
community-id = "0.2"
use std::net::Ipv4Addr;
use community_id::calculate_community_id;

let id = calculate_community_id(
    0,
    Ipv4Addr::new(1, 2, 3, 4).into(),
    Ipv4Addr::new(5, 6, 7, 8).into(),
    Some(1122),
    Some(3344),
    6,
    Default::default(),
);
assert_eq!("1:wCb3OG7yAFWelaUydu0D+125CLM=", id.unwrap());

License

This project is licensed under either of

at your option.

Dependencies

~1MB
~22K SLoC