pub struct UUIDStego {
pub with_hyphen: bool,
pub key: String,
}Fields§
§with_hyphen: bool§key: StringImplementations§
Source§impl UUIDStego
impl UUIDStego
Sourcepub fn new(key: &str, with_hyphen: bool) -> Self
pub fn new(key: &str, with_hyphen: bool) -> Self
Construct a UUIDStego instance.
§Examples
let uuid_stego = UUIDStego::new("some_key");
let template = "hello_world";
let encrypted_flag = uuid_stego.leet(template, 114514); // -> encrypted flagSourcepub fn leet(&self, template: &str, data: i64) -> String
pub fn leet(&self, template: &str, data: i64) -> String
hide a number in a uuid with key encrypted.
pub fn unleet(&self, template: &str, data: &str) -> Result<i64, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UUIDStego
impl RefUnwindSafe for UUIDStego
impl Send for UUIDStego
impl Sync for UUIDStego
impl Unpin for UUIDStego
impl UnwindSafe for UUIDStego
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more