Skip to main content

jwt_algorithm_confusion

Function jwt_algorithm_confusion 

Source
pub fn jwt_algorithm_confusion(token: &str) -> String
Expand description

Generates JWT algorithm confusion patterns for JWT security testing.

Useful for red team JWT algorithm confusion attacks and blue team JWT validation testing.

ยงExamples

use redstr::jwt_algorithm_confusion;
let token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...";
let result = jwt_algorithm_confusion(token);
assert!(result.len() > 0);