encryptScan static method
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);
}