LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-26-2018, 05:44 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
guess CRC32 algo


Is there a way to 'guess' the used algorithm (CRC parameters)?

I have data and the expected checksum value, but I'm not sure if it really is CRC.

Would like Jacksum or similar to try all common algorithms if there is no 'shortcut'.

Thanks.

Last edited by qrange; 11-26-2018 at 05:51 AM.
 
Old 11-26-2018, 06:27 AM   #2
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by qrange View Post
Is there a way to 'guess' the used algorithm (CRC parameters)?

I have data and the expected checksum value, but I'm not sure if it really is CRC.

Would like Jacksum or similar to try all common algorithms if there is no 'shortcut'.

Thanks.
CRC32 is 4 bytes (32-bits) so 8 hex digits. Other algorithmns normally have a different (larger) number of digits (i.e. MD5 has 32). Even the old DES encryption normally already had 11 digits. So with 8 ones you can safely gues it is CRC32 (and with 4 digits CRC16).
 
Old 12-07-2018, 08:23 AM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Reverse-Engineering a CRC Algorithm

But it's probably worth just guessing and checking a couple of the most common crc parameter combinations first.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I generate a crc32 checksum? docbrazen Linux - Newbie 9 10-24-2012 03:52 PM
[SOLVED] binutils configure.guess - cannot guess build type bisonapp Linux From Scratch 3 01-09-2011 03:31 AM
Howto verify crc32 sum for a file brakerm19 Linux - Newbie 2 09-08-2007 04:13 AM
asm crc32 routine gecoool Programming 4 01-31-2006 08:46 AM
Can't active Library routines CRC32 in fedora 4 smashhead Linux - Wireless Networking 0 08-07-2005 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration