From 69105e6f8009f09cdb4571bfbf0cb83609f56c72 Mon Sep 17 00:00:00 2001 From: ytti Date: Thu, 9 Feb 2023 09:36:03 +0200 Subject: [PATCH] Update README.md In SQLCipher passphrase as Data example, fix the use of Data instance --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7707bf83b..ff239f428 100644 --- a/README.md +++ b/README.md @@ -5684,11 +5684,11 @@ For even better control over the lifetime of the passphrase in memory, use a Dat // RECOMMENDED: only load the passphrase when it is needed and reset its content immediately after use var config = Configuration() config.prepareDatabase { db in - let passphrase = try getPassphraseData() // Data + var passphraseData = try getPassphraseData() // Data defer { - passphrase.resetBytes(in: 0..