FixedPassphraseProvider

A simple PassphraseProvider that uses a fixed passphrase. This is useful for development, testing, or when a specific passphrase is required.

Note: This should not be used in production unless there's a specific requirement.

Constructors

Link copied to clipboard
constructor()

Constructs a new FixedPassphraseProvider with a randomly generated passphrase. This is useful when you want a consistent passphrase but don't care what it is.

constructor(fixedPassphrase: String)

Functions

Link copied to clipboard
open suspend override fun getPassphrase(): String

Gets the passphrase for encryption/decryption. If a passphrase doesn't exist yet, implementations should generate and store one.