Skip to content

Request: Encrypted at Rest (Adiantum, VFS) Example #283

Answered by ncruces
MadManMcIvor asked this question in Q&A
Discussion options

You must be logged in to vote

Did you mean to close this?

The key is not stored in the database, that's why you need to supply it with the database name in the file: URI.

Either as a hexkey or textkey (“password”): file:database.db?vfs=adiantum&textkey=correct+horse+battery+staple

Importing package github.com/ncruces/go-sqlite3/vfs/adiantum and using the URI like the above is all you need to do.

Key management is up to you.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MadManMcIvor
Comment options

@ncruces
Comment options

@freb
Comment options

@ncruces
Comment options

Answer selected by MadManMcIvor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants