decryptString method
Implementation
Future<String> decryptString(
SecretBox secretBox, {
required SecretKey secretKey,
}) async {
final clearText = await decrypt(
secretBox,
secretKey: secretKey,
);
try {
return utf8.decode(clearText);
} finally {
// Don't leave possibly sensitive data in the heap.
clearText.fillRange(0, clearText.length, 0);
}
}