pub fn from_base64_secret(secret: &str) -> Result<Self> {
        let out = base64::decode(&secret)?;
        Ok(DecodingKey {
            family: AlgorithmFamily::Hmac,
            kind: DecodingKeyKind::SecretOrDer(Cow::Owned(out)),
        })
    }
/// If you're using HMAC with a base64 encoded, use this.
If you're using HMAC with a base64 encoded, use this.
If you ' re using HMAC with a base64 encoded use this .
pub fn from_base64_secret(secret: &str) -> Result<Self> {
        let out = base64::decode(&secret)?;
        Ok(DecodingKey {
            family: AlgorithmFamily::Hmac,
            kind: DecodingKeyKind::SecretOrDer(Cow::Owned(out)),
        })
    }
pub fn from_base64_secret ( secret : & str ) -> Result < Self > { let out = base64 :: decode ( & secret ) ? ; Ok ( DecodingKey { family : AlgorithmFamily :: Hmac , kind : DecodingKeyKind :: SecretOrDer ( Cow :: Owned ( out ) ) , } ) }
If you're using HMAC with a base64 encoded, use this.
If you ' re using HMAC with a base64 encoded use this .
secret
&str
secret
&str