[−][src]Crate schemeguardian
SchemeGuardian
Secrets Authrorization, Authentication, Verification and Encryption Manager with Key-Value Storage
Re-exports
pub use global::GenericPayload; |
pub use global::GenericRole; |
pub use global::ImmutableRole; |
pub use global::Lease; |
pub use global::Payload; |
pub use global::Target; |
pub use errors::SGError; |
Modules
errors | Module containing error handling using failure for the Rust |
global | Contains global types and methods |
sg_statics | Module containing constants that live for the entirety of the program |
Structs
AuthEngine | Struct structure |
DestructureToken | Struct that splits a token at the pattern |
GenericAuthEngine | Struct structure |
Passphrase | Passphrase Engine handles generation and authentication of passphrases |
SecretStorage | Struct for simple storage |
Enums
AuthState | Shows the current state of an authentication mechanism used by a user or node The authentication mechanism can be of any kind including a Passphrase, PIN, Hardware etc. |
TempLock | Creates a temporary lock if triggered |
Functions
branca_decode | !DONE [TODO: use chrono duration to give a custom ttl]
!DONE use |
branca_encode | Generate a branca token from a SecretString |
branca_random | Generate a random branca token of size u64 Alphanumeric |
random64alpha | Generate a random u64 Alphanumeric key to be stored in a Secret |