| Crates.io | gua64 |
| lib.rs | gua64 |
| version | 0.0.6 |
| created_at | 2025-03-10 13:12:16.797608+00 |
| updated_at | 2026-01-05 04:02:35.899867+00 |
| description | 六十四卦編碼,rust實現 如:“hello,世界”會編碼為“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇” |
| homepage | https://lizongying.github.io/js-gua64/ |
| repository | https://github.com/lizongying/rs-gua64 |
| max_upload_size | |
| id | 1586615 |
| size | 73,570 |
六十四卦編碼,rust實現
如:“hello,世界”會編碼為“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”

cargo add gua64
or
[dependencies]
gua64 = "0.0.6"
or
gua64 = { version = "0.0.6", registry = "crates.io" }
or
gua64 = { git = "https://github.com/lizongying/rs-gua64.git" }
cargo run --example basic_example
or
use gua64::Gua64;
fn main() {
let gua64 = Gua64::new();
let message = "hello,世界".as_bytes();
println!("Original: {:?}", message);
let encoded = gua64.encode(message);
println!("Encoded: {}", encoded);
let decoded = gua64.decode(&encoded);
println!("Decoded: {:?}", String::from_utf8(decoded).unwrap());
let is_valid = gua64.verify(&encoded);
println!("Is valid: {}", is_valid);
}
cargo run
