Crate ncryptf

Source

Modules§

client
deadpool_redis
Deadpool for Redis Latest Version Unsafe forbidden Rust 1.75+
figment
Semi-hierarchical configuration so con-free, it’s unreal.
handlebars
Handlebars
rocket
serde
Serialization and deserialization support.

Macros§

auth
The ncryptf::auth!() macro provides the appropriate generic implementation details of FromRequest to allow User entities to be returned as a Rocket request guard (FromRequest). The core features of ncryptf authorization verification are implemented through this macro. If you wish to utilize ncryptf’s authorization features you must perform the following.
context
A macro to easily create a template rendering context.
ek_route
EkRoute provides a generic route which you can use to generate ephemeral (single use) encryption keys to bootstrap your request/response cycle within your application.

Structs§

Authorization
Generates, validates, and parses Authorization header information
Config
Base configuration for all database drivers.
Connection
A request guard which retrieves a single connection to a Database.
Engines
A structure exposing access to templating engines.
Initializer
A Fairing which initializes a Database and its connection pool.
Keypair
Represents a generic keypair
Metadata
Request guard for dynamically querying template metadata.
Request
A request that emits a encrypted string for submission to the server.
Response
Response allows for decrypting of a request
Signature
Represents a signature and provides utility methods for validating signatures on a request.
Template
Responder that renders a dynamic template.
Token
Authorization token data to be either stored locally, or server side in a cache.

Enums§

Error
A general error type for use by Pool implementors and returned by the Connection request guard.
NcryptfError
Errors that ncryptf may encounter during encrypting and decrypting data - generalized.

Traits§

Database
Derivable trait which ties a database Pool with a configuration name.
Pool
Generic Database driver connection pool trait.

Functions§

randombytes_buf
Returns len random bytes a Vec using libsodium

Derive Macros§

Database
Automatic derive for the Database trait.