verhoeff v1.0.1

implementation of the Verhoeff checksum algorithm in crystal lang

verhoeff

An implementation of the verhoeff algorithm for crystal lang

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      verhoeff:
        github: spider-gazelle/verhoeff
    
  2. Run shards install

Usage

require "verhoeff"

puts Verhoeff.generate_checksum(1234)  # => 0
puts Verhoeff.validate(12340)          # => true

puts Verhoeff.generate_checksum("1234")  # => 0
puts Verhoeff.validate("12340")          # => true

Contributors

Repository

verhoeff

Owner
Statistic
  • 0
  • 0
  • 0
  • 1
  • 0
  • 7 months ago
  • October 11, 2023
License

MIT License

Links
Synced at

Sat, 18 May 2024 00:40:41 GMT

Languages