Documentation
¶
Overview ¶
Package ja4h is a Go implementation of the JA4HTTP (JA4H) hashing algorithm (https://github.com/FoxIO-LLC/ja4).
Note:
This is not a perfect implementation of the algorithm. The JA4H_b section will not be correct because the fingerprint should be the truncated SHA256 hash of the request headers in the order they appear.
Since Go stores the request headers in a map, it does not keep the ordering as they appeared in the request. This implementation of the JA4H_b section sorts the headers before hashing to make the fingerprint consistent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JA4H_a ¶
1. HTTP Method, GET="ge", PUT="pu", POST="po", etc.
2. HTTP Version, 2.0="20", 1.1="11"
3. Cookie, if there's a Cookie "c", if no Cookie "n"
4. Referer, if there's a Referer "r", if no Referer "n"
5. Number of HTTP Headers (ignore Cookie and Referer)
6. First 4 characters of primary Accept-Language (0000 if no Accept-Language)
Types ¶
This section is empty.