[][src]Function logged_fu_skater::obfp

pub fn obfp(input: &str, padding_bytes: u8) -> String

Obfuscates the input string into a human readable hash with 0-8 padding_bytes at the end.

Arguments

  • input - The string to obfuscate.
  • padding_bytes - Number of bytes to add as padding (0-8).

Examples

let result: String = logged_fu_skater::obfp("hello", 2);
assert_eq!(&result, "TerriblyHolyThrill3B48");

Panics

Panics if padding_bytes is greater than 8.

logged_fu_skater::obfp("hello", 99);