bitwarden_crypto::fingerprint

Function fingerprint

source
pub fn fingerprint(
    fingerprint_material: &str,
    public_key: &[u8],
) -> Result<String, CryptoError>
Expand description

Computes a fingerprint of the given fingerprint_material using the given public_key.

This is commonly used for account fingerprints. With the following arguments:

  • fingerprint_material: user’s id.
  • public_key: user’s public key.