Crate sectok[][src]

A Rust library to interact with RFC 8959 secret-token URIs.

See the RFC text for motivation and details.

Constants

PREFIX

The URI scheme with colon, for convenience.

SCHEME

The URI scheme used.

Functions

decode

Decodes the secret-token URI into a secret.

encode

Encodes the secret into the secret-token URI.

is_valid

Returns true if the URI is valid (this means it can be decoded), false otherwise.