diff options
Diffstat (limited to 'atuin-common/src/utils.rs')
-rw-r--r-- | atuin-common/src/utils.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/atuin-common/src/utils.rs b/atuin-common/src/utils.rs index 88cf2ed3..91625a69 100644 --- a/atuin-common/src/utils.rs +++ b/atuin-common/src/utils.rs @@ -7,17 +7,6 @@ pub fn uuid_v7() -> String { Uuid::now_v7().as_simple().to_string() } -pub fn hash_str(string: &str) -> String { - hash_bytes(string.as_bytes()) -} - -pub fn hash_bytes(buf: &[u8]) -> String { - use sha2::{Digest, Sha256}; - let mut hasher = Sha256::new(); - hasher.update(buf); - hex::encode(hasher.finalize()) -} - // TODO: more reliable, more tested // I don't want to use ProjectDirs, it puts config in awkward places on // mac. Data too. Seems to be more intended for GUI apps. |