Function sectok::encode [−][src]
pub fn encode(secret: &str) -> String
Encodes the secret into the secret-token URI.
Non-ascii characters are UTF-8-encoded, disallowed characters then are percent-encoded, finally the PREFIX is prepended.