9个版本
0.8.2 | 2020年3月27日 |
---|---|
0.8.1 | 2020年2月9日 |
0.7.0 | 2020年2月6日 |
0.6.4 | 2020年2月3日 |
13 在 #caesar 中排名
每月46次下载
10KB
140 行
csr
这是一个提供凯撒密码加密和解密的库。
警告:显然不安全
用法
use csr::Caesar;
fn main() {
// the key or "shift"
let key: u8 = 2;
let caesar = Caesar::new(2);
let input = "Hello world!";
assert_eq!(caesar.encrypt(input), "Jgnnq yqtnf!");
}
依赖项
~475KB