pub fn encrypt<T>(v: T, key: &Key) -> T
where
	State: From<T> + Into<T>,
{
	State::from(v).encrypt(key).into()
}
/// Encrypt value with given key.
///
/// # Example
///
/// ```
/// use std::net::Ipv4Addr;
/// let addr = "127.0.0.1".parse::<Ipv4Addr>().unwrap();
/// println!("{}", ipcrypt::encrypt(addr, b"some 16-byte key"));
/// ```
Encrypt value with given key.
Encrypt value with given key .
pub fn encrypt<T>(v: T, key: &Key) -> T
where
	State: From<T> + Into<T>,
{
	State::from(v).encrypt(key).into()
}
pub fn encrypt < T > ( v : T , key : & Key ) -> T where State : From < T > + Into < T > , { State :: from ( v ) . encrypt ( key ) . into ( ) }
Encrypt value with given key.
Encrypt value with given key .
v
T
key
&Key
v
T
key
&Key
example
None