• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tsmx / mongoose-aes-encryption / 25018140595
98%
master: 100%

Build:
Build:
LAST BUILD BRANCH: searchable-fields
DEFAULT BRANCH: master
Ran 27 Apr 2026 08:35PM UTC
Jobs 3
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2026 08:33PM UTC coverage: 98.479% (-1.5%) from 100.0%
25018140595

push

github

tsmx
Add searchable fields feature via HMAC shadow fields

Adds searchable: true field option that enables equality queries on
encrypted fields without weakening encryption. A __search_<fieldname>
shadow field is automatically maintained on save, containing an
HMAC-SHA-256 digest of the plaintext. The HMAC key is derived from the
master key via HKDF-SHA-256, keeping keys cryptographically separate.
The encrypted field itself retains full random-IV AES-256-GCM security.

New exports: encryptForSearch(value, { key }) for use in find() queries.
New test suite: test/searchable.test.js (22 tests).
README updated with feature docs and comparison table row.

133 of 136 branches covered (97.79%)

Branch coverage included in aggregate %.

38 of 39 new or added lines in 2 files covered. (97.44%)

126 of 127 relevant lines covered (99.21%)

459.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.66
-2.34% mongoose-aes-encryption.js
Jobs
ID Job ID Ran Files Coverage
1 25018140595.1 27 Apr 2026 08:35PM UTC 4
98.73
GitHub Action Run
2 25018140595.2 27 Apr 2026 08:35PM UTC 4
98.73
GitHub Action Run
3 25018140595.3 27 Apr 2026 08:35PM UTC 4
98.73
GitHub Action Run
Source Files on build 25018140595
  • Tree
  • List 2
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25018140595
  • 69f0ac25 on github
  • Prev Build on master (#25013627140)
  • Next Build on searchable-fields (#25018446235)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc