Skip to content

henrygarner/biscuit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 
 
 
 
 

Biscuit

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.

Installation

Add the following dependency to your project.clj file:

[biscuit "1.0.0"]

Usage

(require '[biscuit.core :as digest])
(digest/crc8 "hobnob")
; 17

The following algorithms are supported:

  • CRC1
  • CRC5
  • CRC8
  • CRC8 1-wire
  • CRC16
  • CRC16 CCITT
  • CRC16 DNP
  • CRC16 Modbus
  • CRC16 USB
  • CRC16 XModem
  • CTC16 ZModem
  • CRC24
  • CRC32
  • CRC32c
  • CRC32 MPEG

Credit

This library is strongly influenced by the digest-crc ruby gem.

License

Copyright © 2012 Henry Garner

Distributed under the Eclipse Public License, the same as Clojure.

About

A Clojure library for calculating message digest(ive)s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published