GithubHelp home page GithubHelp logo

fabio286 / easy-crc Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 3.0 134 KB

A pure JavaScript and zero dependencies CRC node module.

Home Page: https://www.npmjs.com/package/easy-crc

License: MIT License

JavaScript 0.30% TypeScript 99.70%
crc crc16 crc32 crc8 node-module

easy-crc's Introduction

Hi I'm Fabio Di Stasio ๐Ÿ‘‹

I'm a web developer, i love tech, the open source world and JavaScript ๐Ÿ’›.
My motto is: do things for the sake of making them, the rest will come by itself.

  • ๐Ÿ”ญ Iโ€™m currently working on Antares, an SQL client created on top of Electron and Vue.
  • ๐Ÿ’ฌ Ask me about JavaScript stack.
  • ๐Ÿ“ซ How to reach me: [email protected]
  • โšก Fun fact: I like prog rock, post-punk and when I'm not coding I like to play videogames.
  • ๐Ÿ’ป Website

Mastodon Follow LinkedIn Plant a Tree

easy-crc's People

Contributors

fabio286 avatar steffenlego avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

easy-crc's Issues

Unexpected behaviour with crc8 dvb-s2

Hi @Fabio286,

I've a very specific use case which I need to implement for an external service. I create an unique ID with crc32 & crc8-dvbs2 and there seems to be a problem. The Service has an example which works fine with you algorithms see example below. But when I'm using a new one I ran into an unexpected behaviour maybe you could explain to me what is wrong.

Example:

MessageId = AT999999201812312359598880000000001
CRC-32(MessageId) = 0x45 0xA2 0xDF 0xF1
CRC-8(0x45 0xA2 0xDF 0xF1) = 0xF6
BASE-32(0x45 0xA2 0xDF 0xF1 0xF6) = IWRN74PW

New Message:

MessageId = RC100378202301201049399550000007026
CRC-32(MessageId) = 0x90 0x12 0xE7 0xCC
CRC-8(0x90 0x12 0xE7 0xCC) = 0 // but this should be 0x0A see https://crccalc.com/?crc=9012e7cc&method=crc8&datatype=hex&outtype=0
BASE-32(0x90 0x12 0xE7 0xCC 0x0A) = SAJOPTA= // but this should be SAJOPTAK

Can you pls help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.