decryptScan static method
Decrypts an EncryptedScanData envelope back to a ScanResult.
Returns null if the data has expired or the password is incorrect.
Implementation
static ScanResult? decryptScan(
EncryptedScanData encrypted, {
required String password,
}) {
return EncryptedStorage.decrypt(encrypted, password: password);
}