Struct termusiclib::songtag::encrypt::Crypto
source · pub struct Crypto;Implementations§
source§impl Crypto
impl Crypto
pub fn hex_random_bytes(n: usize) -> String
pub fn alpha_lowercase_random_bytes(n: usize) -> String
pub fn eapi(url: &str, text: &str) -> Result<String>
pub fn weapi(text: &str) -> Result<String>
pub fn linuxapi(text: &str) -> Result<String>
pub fn aes_encrypt(data: &str, key: &[u8], iv: Option<&[u8]>) -> Result<String>
pub fn encrypt_id(id: &str) -> String
Auto Trait Implementations§
impl RefUnwindSafe for Crypto
impl Send for Crypto
impl Sync for Crypto
impl Unpin for Crypto
impl UnwindSafe for Crypto
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