Skip to main content

Crate cloakpipe_core

Crate cloakpipe_core 

Source
Expand description

CloakPipe Core — Detection, pseudonymization, and rehydration engine.

This crate provides the foundational privacy primitives:

  • Multi-layer entity detection (regex, financial, NER, custom rules)
  • Consistent pseudonymization with stable entity→token mappings
  • Encrypted mapping vault (AES-256-GCM + zeroize)
  • Response rehydration (including SSE streaming support)

Modules§

config
Configuration types parsed from cloakpipe.toml.
detector
Multi-layer entity detection engine.
rehydrator
Response rehydration — replaces pseudo-tokens back with original values.
replacer
Consistent pseudonymization engine.
vault
Encrypted mapping vault — stores entity<->pseudo-token mappings.

Structs§

DetectedEntity
A detected sensitive entity within text.
PseudoToken
A pseudonymized replacement token.
PseudonymizedText
Result of pseudonymizing a text.
RehydratedText
Result of rehydrating a response.

Enums§

DetectionSource
Which detection layer identified the entity.
EntityCategory
Categories of sensitive entities.