Skip to content

knoppiks/iso-7064

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojure Implementation of ISO 7064

Build Status Clojars Project

Clojure implementation of ISO 7064 - Check check character systems. Providing all Pure and Hybrid systems listed in the standard under 5.4.1. Moreover custom check character systems can be created.

Install

To install, just add the following to your project dependencies:

[org.clojars.knoppiks/iso-7064 "0.1.0"]

Usage

(use 'iso-7064.core)

(calc-check-character mod-11-2 "079")
(valid? mod-11-2 "079X")

Creating a custom system

(use 'iso-7064.core)

(def sys (pure-system "0123456789ABC" 13 2 false))
(calc-check-character sys "05BC")
(valid? sys "05BCA")

Note: Custom systems may be useless, if arguments are chosen unwisely. For more information refer to the standard or other sources on check character systems.

License

Copyright © 2016 Jonas Wagner

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

About

Clojure implementation of ISO 7064

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published