Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jan 30, 2021. It is now read-only.
/CRC-manipulatorPublic archive

Change CRC checksums of your files.

License

NotificationsYou must be signed in to change notification settings

rr-/CRC-manipulator

Repository files navigation

A tool that lets you reverse and freely change CRC checksums through smartfile patching.

Note

This repository is no longer maintained. The focus has shifted to aPythonvariant of this tool (the performance isequivalent).

Features

  • Patching and calculating CRC checksums for:
    • CRC32
    • CRC32POSIX (cksum from GNU coreutils)
    • CRC16CCITT
    • CRC16IBM
  • Available for GNU/Linux and Windows.
  • Minimal GUI (supports CRC32 only; for more advanced options, use CLI version).

How it works

It appends a few bytes at the end of the file so that the file checksumcomputes to given hexadecimal hash.

Seeing it in action

GUI version:

GUI version

CLI version:

CLI version

Binaries for Windows

To download precompiled binaries for Windows, head over toreleases.

Compiling

  1. Make sure you haveg++python3-setuptools andpython3-wheelpackages installed

  2. Install Meson and Ninja

    pip3 install meson ninja
  3. Run following

    meson build --buildtype releaseninja -C build

    Thecrcmanip-gui is not compiled by default. If you want to compile it,make sure you haveqt5 packages installed. Then replace the third stepabove with this one:

    meson build -Dgui=true --buildtype releaseninja -C build

Cross-compiling for Windows without GUI

  1. Installmingw-w64

  2. Replace the content of thecross_mingw_i686.txt andcross_mingw_x86_64.txt files with the one of themingw-w64 filesthat you can findhere

  3. Build the binaries

    Windows 32-bit

    meson build_windows32 \    --buildtype release \    --cross-file cross_mingw_i686.txtninja -C build_windows32

    Windows 64-bit

    meson build_windows64 \    --buildtype release \    --cross-file cross_mingw_x86_64.txtninja -C build_windows64

Cross-compiling for Windows with GUI

  1. Installmxe

  2. Add themxe path to the environment variablePATH

  3. Install the static version of the qt5 library

    Windows 32-bit

    cd your/path/to/mxe/make MXE_TARGETS=i686-w64-mingw32.static qt5

    Windows 64-bit

    cd your/path/to/mxe/make MXE_TARGETS=x86_64-w64-mingw32.static qt5
  4. Build the binaries

    Windows 32-bit

    meson build_windows32 \    --buildtype release \    -Dgui=true \    -Dmxe='/your/path/to/mxe/32-bit' \    --cross-file cross_mingw_i686.txtninja -C build_windows32

    Windows 64-bit

    meson build_windows64 \    --buildtype release \    -Dgui=true \    -Dmxe='/your/path/to/mxe/64-bit' \    --cross-file cross_mingw_x86_64.txtninja -C build_windows64

Building tests

To build tests, simply add the-Dtests=true option to themeson command.


[8]ページ先頭

©2009-2025 Movatter.jp