Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clj-commons/digest
Digest algorithms (md5, sha1 ...) for Clojure
https://github.com/clj-commons/digest
Last synced: 2 days ago
JSON representation
Digest algorithms (md5, sha1 ...) for Clojure
- Host: GitHub
- URL: https://github.com/clj-commons/digest
- Owner: clj-commons
- Created: 2012-03-28T21:32:52.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-07-28T21:12:17.000Z (over 1 year ago)
- Last Synced: 2024-10-30T01:59:44.866Z (2 months ago)
- Language: Clojure
- Homepage:
- Size: 753 KB
- Stars: 158
- Watchers: 6
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- stars - clj-commons/digest - Digest algorithms (md5, sha1 ...) for Clojure (⭐️158) (Clojure)
- stars - clj-commons/digest - Digest algorithms (md5, sha1 ...) for Clojure (⭐️158) (Clojure)
README
# clj-commons/digest
[![Clojars Project](https://img.shields.io/clojars/v/org.clj-commons/digest.svg)](https://clojars.org/org.clj-commons/digest)
[![cljdoc badge](https://cljdoc.org/badge/org.clj-commons/digest)](https://cljdoc.org/d/org.clj-commons/digest)
[![CircleCI Status](https://circleci.com/gh/clj-commons/digest.svg?style=svg)](https://circleci.com/gh/clj-commons/digest)`clj-commons/digest` - A message digest library for Clojure. Providing `md5`, `sha-256`, ...
There are several digest functions (such as `md5`, `sha-256` ...) in this
namespace. Each can handle the following input types:* `java.lang.String`
* `byte array`
* `java.io.File`
* `java.io.InputStream`
* Sequence of byte array# Usage
``` clojure
user=> (require '[clj-commons.digest :as digest])
nil
; On a string
user=> (digest/md5 "clojure")
"32c0d97f82a20e67c6d184620f6bd322"
; On a file
user=> (require '[clojure.java.io :as io])
nil
user=> (digest/sha-256 (io/file "/tmp/hello.txt"))
"163883d3e0e3b0c028d35b626b98564be8d9d649ed8adb8b929cb8c94c735c59"
```# Installation
## deps.edn
``` clojure
org.clj-commons/digest {:mvn/version "1.4.100"}
```## lein
``` clojure
[org.clj-commons/digest "1.4.100"]
```# Dev
## Deployment
Run `bb deploy` to deploy using the clj-commons
[release](https://github.com/clj-commons/infra/blob/main/deployment/release.bb)
script or create a tag manually in the format `Release-1.4.` and
push it.# License
Copyright© 2017 Miki TebekaDistributed under the Eclipse Public License (same as Clojure).
Snail image in `tests` is public domain by Miki Tebeka