A Clojure library for calculating message digest(ive)s. The digest algorithms implemented in biscuit are all variations of CRCs and are designed to verify the integrity of messages sent over noisy channels.
Add the following dependency to your project.clj
file:
[biscuit "1.1.0"]
(require '[biscuit.core :as digest])
(digest/crc8 "hobnob")
; 17
The following algorithms are supported:
Performance notice: CRC64 implementation uses BigInteger
s, as native Clojure Long
s and BigInt
s are not big enough to hold the required values. This means the CRC64 implementation is extremely slow compared to the rest of the CRCs implemented by the library.
This library is strongly influenced by the digest-crc ruby gem.
Copyright © 2012 Henry Garner Copyright © 2019 Magnet S. Coop.
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation? These fine people already did:
Henry Garner & Iñaki ArenazaEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close