[][src]Function ectoken::encrypt_v3

pub fn encrypt_v3(key: &str, token: &str) -> String

EncryptV3 encrypts the given content using the supplied key.

let input = "ec_expire=1257642471&ec_secure=33";

let encrypted = ectoken::encrypt_v3("testkey123", input);
println!("{}", encrypted);