[][src]Function bundled_crypto::token::paseto::v1::local::encrypt

pub fn encrypt<T: Serialize + KnownClaims, F: Serialize>(
    tok: Data<T, F>,
    key: &[u8]
) -> Result<Packed, Error>

Encrypts, encodes, and packs a [Data] token into a [Packed] token.