Gathering detailed insights and metrics for crclib
Gathering detailed insights and metrics for crclib
Gathering detailed insights and metrics for crclib
Gathering detailed insights and metrics for crclib
npm install crclib
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
8 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Jun 19, 2022
Latest Version
1.0.1
Package Id
crclib@1.0.1
Unpacked Size
7.88 kB
Size
2.62 kB
File Count
4
NPM Version
7.11.1
Node Version
12.22.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
Данная библеотека позволяет вам рассчитать контрольную сумму для таких ключей как: Dallas, ТехКом (включая ТК17), КТ-01, Mifare (включая алгоритм расчета с 3 байтами), Urmet.
1texkom(<ByteArray>) // Контрольная сумма ТехКом (ТК-13, ТК-15) 2kt01(<ByteArray>) // Контрольная сумма КТ-01 3dallas(<ByteArray>) // Контрольная сумма Dallas 4tk17(<ByteArray>) // Контрольная сумма ТехКом ТК-17 5mifare(<ByteArray>) // Контрольная сумма Mifare (4 байта) 6mifare3(<ByteArray>) // Контрольная сумма Mifare (3 байта) 7urmet(<ByteArray>) // Контрольная сумма Urmet 8fixHid37(<ByteArray>) // Фикс неправильного кода для HID37 9fixPAC(<ByteArray>) // Фикс неправильного кода для PAC 10fixMetakomByte(<Byte>) // Фикс кода в соотвествии с документацией чипа 1233КТ2 11 12test() // Проверка всех алгоритмов
Пример:
1var crclib = require("crclib") 2 3var crc = new crclib() 4 5console.log(`ТехКом: ` + this.texkom([0x00, 0x32, 0x32, 0x44, 0x55, 0x63, 0xFF, 0xFF]) ) // -> 5A 6console.log(`КТ-01: ` + this.kt01([0x00, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34]) ) // -> 44 7console.log(`Dallas: ` + this.dallas([0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x01]) ) // -> 9B 8console.log(`ТехКом ТК-17: ` + this.tk17([0x00, 0x32, 0x32, 0x44, 0x55, 0xCA, 0xFF, 0xFF]) ) // -> 48 9console.log(`Mifare: ` + this.mifare([0xAA, 0xBB, 0xCD, 0xEF]) ) // -> 33 10console.log(`Mifare: ` + this.mifare3([0xAA, 0xBB, 0xCC]) ) // -> 55 11console.log(`HID37: ` + this.fixHid37([0x56, 0x5A, 0x11, 0x40, 0xBE]) ) // -> 07,5A,11,40,BE 12console.log(`Urmet: ` + this.urmet([0xF2, 0x00, 0x00, 0x98, 0x76, 0x54, 0x32])) // -> D2 13console.log(`PAC: ` + this.fixPAC([0x12, 0x21, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x12, 0x34, 0x56, 0x78, 0x90, 0x00, 0x00, 0x00])) 14console.log(`METAKOM: 9AD1E1` + this.fixMetakomByte(0x9AD1E1D0)) // -> 9AD1E1D1
Если нашли ошибку или у вас есть вопросы пожалуйста напишите мне
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More