Expand description
A Rust library to interact with RFC 8959 secret-token URIs.
See the RFC text for motivation and details.
§Validation
There used to be a separate validation function provided in the library, but since the
validation process needs to do the full decoding anyway that could lead to the library used in
a suboptimal fashion. If you want to merely validate a piece of data use decode()
and see if
it returns Some(_)
(URI valid) or None
(URI invalid).
Constants§
- The URI scheme with colon, for convenience.
- The URI scheme used.
Functions§
- Decodes the secret-token URI into a secret.
- Encodes the secret into the secret-token URI.