crt/s2n/compliance/specs/raw.githubusercontent.com/FoxIO-LLC/ja4/df3c067/technical_details/JA4/cipher-hash.toml
raw symbols SCIP| 1 | target = "https://raw.githubusercontent.com/FoxIO-LLC/ja4/df3c067/technical_details/JA4.md#cipher-hash" |
| 2 | |
| 3 | # ### Cipher hash: |
| 4 | # A 12 character truncated sha256 hash of the list of ciphers sorted in hex order, first 12 characters. The list is created using the 4 character hex values of the ciphers, lower case, comma delimited, ignoring GREASE. |
| 5 | # Example: |
| 6 | # ``` |
| 7 | # 1301,1302,1303,c02b,c02f,c02c,c030,cca9,cca8,c013,c014,009c,009d,002f,0035 |
| 8 | # ``` |
| 9 | # Is sorted to: |
| 10 | # ``` |
| 11 | # 002f,0035,009c,009d,1301,1302,1303,c013,c014,c02b,c02c,c02f,c030,cca8,cca9 = 8daaf6152771 |
| 12 | # ``` |
| 13 | # |
| 14 | # If there are no ciphers in the sorted cipher list, then the value of JA4_b is set to `000000000000` |
| 15 | # We do this rather than running a sha256 hash of nothing as this makes it clear to the user when a field has no values. |
| 16 | # |
| 17 | |
| 18 | [[spec]] |
| 19 | level = "MUST" |
| 20 | quote = ''' |
| 21 | A 12 character truncated sha256 hash of the list of ciphers sorted in hex order, first 12 characters. |
| 22 | ''' |
| 23 | |
| 24 | [[spec]] |
| 25 | level = "MUST" |
| 26 | quote = ''' |
| 27 | The list is created using the 4 character hex values of the ciphers, lower case, comma delimited, ignoring GREASE. |
| 28 | ''' |
| 29 | |
| 30 | [[spec]] |
| 31 | level = "MUST" |
| 32 | quote = ''' |
| 33 | If there are no ciphers in the sorted cipher list, then the value of JA4_b is set to `000000000000` |
| 34 | ''' |