Encrypts a String. Example: ``` use cryptor::encrypt; assert_eq!(encrypt("hello"), "aGVsbG8="); assert_eq!(encrypt(""), ""); ```
(to: &str)
| 12 | /// assert_eq!(encrypt(""), ""); |
| 13 | /// ``` |
| 14 | pub fn encrypt(to: &str) -> String { |
| 15 | base64Engine.encode(String::from(to)) |
| 16 | } |
| 17 | |
| 18 | /// Decrypts a String. |
| 19 | /// |
no outgoing calls