jwt-rustcrypto 0.2.1

Library for encoding, decoding, and validating JSON Web Tokens (JWTs) implemented using Rust Crypto libraries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, Clone)]
pub struct SecretKey {
    content: Vec<u8>,
}

impl SecretKey {
    pub fn new(content: Vec<u8>) -> Self {
        Self { content }
    }

    pub fn inner(&self) -> &[u8] {
        &self.content
    }
}