encryptScan static method

EncryptedScanData encryptScan(
  1. ScanResult result, {
  2. required String password,
  3. Duration? ttl,
})

Encrypts a ScanResult with the given password for secure storage.

Returns an EncryptedScanData envelope containing ciphertext, IV, and salt.

Implementation

static EncryptedScanData encryptScan(
  ScanResult result, {
  required String password,
  Duration? ttl,
}) {
  return EncryptedStorage.encrypt(result, password: password, ttl: ttl);
}