dotnet-sqlcipher-encryption

dotnet-sqlcipher-encryption is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 98 tokens per session (1,661 once invoked), scanned A, original, MIT.

Instructions for using SQLCipher-compatible encryption with SQLite in .NET. SQLCipher is a version of SQLite that encrypts the database file, and the guide covers keys, key sources, and key changes.

In plain words
What is it for?
It helps configure encrypted SQLite connections, derive a key from an Ed25519 SSH key, load keys from environment or secret storage, and handle rekey constraints.
Why use it?
It helps avoid opening the database with the wrong key or applying operations that SQLite encryption does not support in a given mode.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps configure encrypted SQLite connections, derive a key from an Ed25519 SSH key, load keys from environment or secret storage, and handle rekey constraints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/dotnet-sqlcipher-encryption
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Arasz/ai-raccoon --skill dotnet-sqlcipher-encryption
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-sqlcipher-encryption

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-sqlcipher-encryption/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-sqlcipher-encryption)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-sqlcipher-encryption"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-sqlcipher-encryption/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-sqlcipher-encryption

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-sqlcipher-encryption"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-sqlcipher-encryption.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,661 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01661
Opus 5.5 $0.00039 $0.00664
Sonnet 5.5 $0.00020 $0.00332
Haiku 4.5 $0.00010 $0.00166

Measured yesterday against content hash 044a0bc5730c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-sqlcipher-encryption scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ai-badger/skills/dotnet-workload/references/dotnet-sqlcipher-encryption/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SQLCipher encryption in .NET

Encrypted-at-rest SQLite via SQLCipher-compatible e_sqlite3mc (SQLitePCLRaw bundle). The passphrase flows through SqliteConnectionStringBuilder.Password. All claims below were MEASURED on macOS + net10 in the reference project (2026-08-05).

The raw-key channel (strongest option)

Password = "x'<64-hex>'" keys the bank with a RAW 256-bit key — no KDF, no passphrase brute-force surface. Verified end-to-end: create → reopen → wrong-key rejection (SqliteException code 26). Prefer raw keys over passphrases whenever the key material can be a random/derived 32 bytes (file, vault, derivation). Passphrase mode is fine but weaker: weak passphrases are brute-forceable offline (the header salt + HMAC are on disk).

Deriving a key from an ed25519 SSH private key

  • Parse the OpenSSH private key (openssh-key-v1 magic, RFC 8709): ciphername must be none; the 32-byte seed is the first 32 bytes of the private half.
  • Derive: SHA-256("<stable-label>" || seed) → raw 32 bytes → x'<hex>'. The label is a STABILITY CONTRACT — changing it silently breaks every existing bank.
  • ed25519 only. RSA: private-key encodings are non-canonical (PKCS#1/PKCS#8/OpenSSH) → unstable derivation. Passphrase-protected keys: seed is bcrypt_pbkdf-encrypted → reject (detect the bcrypt cipher field).
  • Test vectors must be pinned: synthetic seed 00..1f → x'277bf7…281b' for label <app>-db-key/v1; generate a real ssh-keygen -t ed25519 fixture for the second.

Rekey constraints

  • PRAGMA rekey with the target x'…' literal (build via SELECT quote(?) to avoid quoting bugs). Rekey legs verified: raw↔raw, passphrase→raw, plaintext→raw.
  • WAL is unsupported for rekey — switch the journal to DELETE for the rekey, then back.
  • Persist order for source switches: rekey the bank FIRST, then write the source marker, then mirror to settings — a crash mid-sequence must be recoverable (see retry legs below).

Key-source architecture (pluggable providers)

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 83 lines · 98 tokens per session scan A 044a0bc5730c

Subscribe to this mod's changes

dotnet-sqlcipher-encryption is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 98 tokens to every session and 1,661 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

dotnet-sqlcipher-encryption compared with skills from other repositories

dotnet-sqlcipher-encryption next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-sqlcipher-encryptionArasz/ai-raccoonSkill7todayMITA98Claude Code, Codex
graph-db-writessamugit83/redamonSkill3.6k2d agoMITA174Claude Code, Codex
tradecraft-librarysamugit83/redamonSkill3.6k2d agoMITA176Claude Code, Codex
stripe-projectsstripe/aiSkill2.1kyesterdayMITA217Claude Code
release-db-config-syncPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA91Claude Code
browser-7008e942FuRongJun-1999/dsh-memorySkill778todayMITA82Claude Code
cartographer-kb-createBeppeTemp/cartographerSkill74yesterdayApache-2.0A53Claude Code, Codex