reveal method

String reveal()

The plaintext. The one accessor — every call site is a place the secret is deliberately read.

Implementation

String reveal() {
  final bytes = Uint8List(_masked.length);
  for (var i = 0; i < bytes.length; i++) {
    bytes[i] = _masked[i] ^ _salt[i];
  }
  return utf8.decode(bytes);
}