Verhoeff
Simple implementation of node verhoeff
Install / Use
/learn @yuyudhan/VerhoeffREADME
Verhoeff
Simple implementation of verhoeff checksum implentation in node JS.
Aadhaar numbers & verhoeff
Did you know aadhaar numbers have last digit as a verhoeff checksum. The idea behind this is to quickly identify typing/data-entry errors on the entry machine.
https://groups.google.com/forum/#!msg/aadhaarauth/eB5hOU-Qtq0/YDcWPdPOXowJ
Usage
npm i node-verhoeff --save
var verhoeff = require('node-verhoeff');
verhoeff.validateAadhaar('496858245152')
// should return true
verhoeff.generate([4, 9, 6, 8, 5, 8, 2, 4, 5, 1, 5]);
// should return 2, generates verhoeff checksum using the input array
Original code by
Sergey Petushkov, 2014
Understand the math
For more info on the algorithm: http://en.wikipedia.org/wiki/Verhoeff_algorithm by
Implemented by
@yuyudhan, Ankur Pandey
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
