#flow #networking #community #id #hashing #hash #identifier

community-id

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

7 releases

0.2.3 Jun 19, 2024
0.2.2 Oct 7, 2023
0.2.1 Aug 11, 2023
0.1.2 May 14, 2023

#5 in #community

Download history 3134/week @ 2024-04-03 2839/week @ 2024-04-10 2482/week @ 2024-04-17 2528/week @ 2024-04-24 2488/week @ 2024-05-01 3437/week @ 2024-05-08 3111/week @ 2024-05-15 3692/week @ 2024-05-22 3142/week @ 2024-05-29 2878/week @ 2024-06-05 3027/week @ 2024-06-12 2938/week @ 2024-06-19 2930/week @ 2024-06-26 3634/week @ 2024-07-03 2704/week @ 2024-07-10 2430/week @ 2024-07-17

12,273 downloads per month
Used in vrl

MIT/Apache

35KB
925 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

~1–1.5MB
~33K SLoC