Generates a Short Authentication String (SAS) from two fingerprints
The SAS is a 4-digit code that both peers can visually verify to detect active MITM attacks. Both peers should see the same code.
Local device's 32-byte fingerprint
Remote device's 32-byte fingerprint
4-digit string (e.g., "1234")
const sas = await generateSAS(localFP, remoteFP);console.log(`Verify this code matches: ${sas}`); // "1234" Copy
const sas = await generateSAS(localFP, remoteFP);console.log(`Verify this code matches: ${sas}`); // "1234"
Generates a Short Authentication String (SAS) from two fingerprints
The SAS is a 4-digit code that both peers can visually verify to detect active MITM attacks. Both peers should see the same code.