diff options
| author | Xe Iaso <me@christine.website> | 2022-10-30 18:24:09 -0400 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-10-30 18:24:09 -0400 |
| commit | 23c64aebf57b3a9f9db4c08af001f01af25d732d (patch) | |
| tree | 6a3e6aafe2eef06aaea2faa5b8c7711be328c86e /src/lib.rs | |
| parent | 5d2935617a0e4bf615a8ffc0f7c1f96d9479cbd8 (diff) | |
| download | xesite-23c64aebf57b3a9f9db4c08af001f01af25d732d.tar.xz xesite-23c64aebf57b3a9f9db4c08af001f01af25d732d.zip | |
various site updates
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,7 +1 @@ -use sha2::{Digest, Sha256}; - -pub fn hash_string(inp: String) -> String { - let mut h = Sha256::new(); - h.update(&inp.as_bytes()); - hex::encode(h.finalize()) -} +pub use xesite_markdown::hash_string; |
