Skip to main content

phoenix_crypto/
lib.rs

1#![forbid(unsafe_code)]
2
3mod blind_index;
4mod encryption;
5#[cfg(feature = "jwt")]
6mod jwt;
7#[cfg(feature = "password")]
8mod password;
9#[cfg(feature = "jwt")]
10mod token;
11
12pub use blind_index::{BlindIndexError, BlindIndexKey, BlindIndexer, MAX_BLIND_INDEX_KEYS};
13pub use encryption::{Ciphertext, EncryptionError, EncryptionKey, Encryptor};
14#[cfg(feature = "jwt")]
15pub use jwt::{Jwt, JwtAuth, JwtClaims, JwtConfig, JwtError, JwtKey, JwtManager, JwtRejection};
16#[cfg(feature = "password")]
17pub use password::{Password, PasswordError};
18#[cfg(feature = "jwt")]
19pub use token::{
20    FileTokenStore, MemoryTokenStore, RefreshRecord, RotateRefresh, StatefulJwtAuth, TokenError,
21    TokenPair, TokenService, TokenStore, TokenStoreError,
22};