Skip to main content

jwt_header_manipulation

Function jwt_header_manipulation 

Source
pub fn jwt_header_manipulation(header: &str) -> String
Expand description

Generates JWT header manipulation patterns for JWT security testing.

Useful for red team JWT token manipulation and blue team JWT validation testing.

ยงExamples

use redstr::jwt_header_manipulation;
let header = r#"{"alg":"HS256","typ":"JWT"}"#;
let result = jwt_header_manipulation(header);
assert!(result.len() > 0);