Function jsonwebtoken::crypto::sign [−][src]
pub fn sign(
message: &[u8],
key: &EncodingKey,
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.
If you just want to encode a JWT, use encode
instead.