read

open suspend override fun read(path: Path): String?(source)

Reads and decrypts file content securely. This operation ensures:

  • Proper decryption of content

  • Secure handling of decryption errors

  • No exposure of encrypted data

Return

Decrypted content, or null if file doesn't exist

Parameters

path

Encrypted file to read

Throws

if decryption fails