pub fn obfuscate_string(input: &str, offset: u8) -> StringExpand description
Generate a simple obfuscated string
This is basic obfuscation, not encryption. Don’t use for sensitive data.
§Arguments
input- String to obfuscateoffset- Character offset for obfuscation
§Example
ⓘ
let obfuscated = obfuscate_string("hello", 3);
let deobfuscated = deobfuscate_string(&obfuscated, 3);
assert_eq!(deobfuscated, "hello");