[−][src]Function jsonwebtoken::sign
pub fn sign(
signing_input: &str,
key: &[u8],
algorithm: Algorithm
) -> Result<String>
Take the payload of a JWT, sign it using the algorithm given and return the base64 url safe encoded of the result.
Only use this function if you want to do something other than JWT.