#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

#318 in Network programming

Download history 173250/week @ 2025-08-14 135917/week @ 2025-08-21 122927/week @ 2025-08-28 134593/week @ 2025-09-04 130274/week @ 2025-09-11 127489/week @ 2025-09-18 135798/week @ 2025-09-25 134558/week @ 2025-10-02 122498/week @ 2025-10-09 124013/week @ 2025-10-16 144838/week @ 2025-10-23 143200/week @ 2025-10-30 143311/week @ 2025-11-06 169058/week @ 2025-11-13 96456/week @ 2025-11-20 42014/week @ 2025-11-27

478,632 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