seckit library

Secure cryptographic utilities for Dart

Classes

Config
For security reasons, environment variables should be used to configure sensitive settings. Configuration class for seckit package. Contains settings for JWT secrets, database encryption, and environment flags.
DeterministicHasher
Provides deterministic hashing for searchable fields. Unlike bcrypt, the same input always produces the same hash, making it suitable for database lookups (e.g., finding user by hashed email).
EmailUtils
Utility class for email operations.
FieldEncryptor
Provides deterministic AES encryption for database fields. Useful for encrypting sensitive data while maintaining searchability.
JwtHandler
Handles JWT token generation and validation. Supports both production JWT tokens and development auth tokens.
PasswordHasher
Provides secure password hashing using bcrypt. Each hash includes a unique salt, so the same password will produce different hashes. Use verify to check if a password matches a hash.