JSON-CRC32-Hasher

module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2023 License: MIT

README

JSON CRC32 Hasher

This small tool is used for checking and writing CRC32 check sum of a JSON file.

This is not a universal tool, this tool works only with its specific data format. A separate executable file is used for checking and another one – for writing CRC32 check sums. A JavaScript function for the web browser to calculate CRC32 check sums is included.

CRC

CRC means a cyclic redundancy check.

A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to digital data.

https://en.wikipedia.org/wiki/Cyclic_redundancy_check

This tool calculates a standard CRC-32 checksum of data using the IEEE polynomial.

Why CRC ?

Why not MD or SHA ?
CRC is very fast and is still quite good for small amounts of data.
CRC32 is very easy to be implemented in JavaScript on the web browser's side.

Building

Use the build.bat script included with the source code.

Installation

go install github.com/vault-thirteen/JSON-CRC32-Hasher/cmd/checker@latest
go install github.com/vault-thirteen/JSON-CRC32-Hasher/cmd/filler@latest

Usage

Checker

checker.exe <json-file>

Example:
checker.exe "file.json"

Filler

filler.exe <json-file>

Example:
filler.exe "file.json"

Directories

Path Synopsis
cmd
pkg
cla

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL