Go SQLite3 driver for GORM by encrypting the SQLite3 database with AES-256 conforming to the built-in database / SQL interface
import (
"fmt"
sqlite "github.com/StinkyPeach/sqlite"
"gorm.io/gorm"
)
key := "your's key"
dbName := "test.db"
DSN := dbName + fmt.Sprintf("?_pragma_key=%s&_pragma_cipher_page_size=4096", key)
db, err := gorm.Open(sqlite.Open(DSN), &gorm.Config{})
Checkout https://gorm.io for details.