Renew VFS key if unable to find it

This commit is contained in:
Christophe Deschamps 2022-04-15 11:42:07 +02:00
parent 0ceb1f9043
commit 5c0092351f

View file

@ -188,6 +188,7 @@ import os
}
guard let secret = decrypt(encryptedText: encryptedKey) else {
log("[VFS] Unable to decryt encrypted key.", .error)
removeExistingVFSKeyIfAny()
return false
}
Factory.Instance.setVfsEncryption(encryptionModule: 2, secret: secret, secretSize: 32)