r/commandline • • 23d ago

Command Line Interface A lightweight, niche CLI project that identifies those mysterious and pain-giving hashes

You can get this project directly using pip or uv:

Using pip:


pip install pyhashprint

Or using uv:


uv tool install pyhashprint

For source code and usage instructions see the GitHub repository.

This project of mine solves a very unique and niche problem, that is identifying hashes. Hashes are a really confusing thing because a ton of algorithms can generate them easily but it is not so easy to identify which algorithm produced the hash in question. To solve this problem, I coded this project. It can identify 90+ hashes and export results to various formats. Moreover, there's also colored output for better readability and aesthetics.

It takes a second to get this thing going, so give it a try.

0 Upvotes

17 comments sorted by

3

u/gschizas 22d ago

Can you give us:

  1. Some examples with output?
  2. The reason behind this? Or the use case in general?

0

u/RopeImaginary1368 22d ago

You can check the repo link for usage examples and further help. Here is the link: https://github.com/tahaqaisar/HashPrint

2

u/gschizas 21d ago

I've already visited the GitHub link. It only shows what you need to run, not the results. As a user, I want to know the result first before I run the program. This is just a good demo/marketing practice. That's what I mean by "output".

-2

u/RopeImaginary1368 21d ago

This is cyber security utility, not a product that I need to market. Anyone familiar with cyber security will naturally know the expected output after going through the README. My tool is for the people from the cyber space.

2

u/gschizas 21d ago

Dude.

Just post the output of your program in GitHub. I'm not asking much.

EDIT: As to marketing: You're already doing marketing/promotion/demo/whatever you want to call it by posting it to reddit. It's not a bad or dirty thing to promote your work. But a major hint is: Show what your program does BEFORE somebody downloads it. Posting a screenshot (or even just the output in text, but you'll miss out on any colors) is not that big of a deal!

-2

u/RopeImaginary1368 20d ago

Dude, why don't you install it, run it, create a GIF of it and send it to me. I'll appreciate your contribution.

2

u/gschizas 20d ago

The pont is that I don't know what I should expect from your application, so I don't know what's the correct GIF is that would showcase your application correctly. You do, because you made it.

-2

u/RopeImaginary1368 20d ago

Bro, you don't know what to expect from my tool. Just visit my repo, read the README, install the tool, run it, you'll get the output. Create the GIFs of the output and how a user like you can use the tool. Just open a GitHub issue on my repo and then provide those GIFs you'll create as the solution. I'll add them to my README.

1

u/gschizas 19d ago

You have your process backwards.

I visit your repo, I see nothing on what this program does, I go away. I won't visit your repo, don't know what it does, download it anyway, and produce the screenshot on my own!

I'm telling you this to improve your program (or in this case your "marketing"). Just put a screenshot of your output. It doesn't need to even be a GIF, a PNG (by which I mean no animation) would do just fine. Show off that "colored output for better readability and aesthetics". Take this as the free advice it is.

-2

u/RopeImaginary1368 22d ago

It is used to identify various types of hashes, mostly in the cyber security space. You can't identify which algorithm produced a given hash, because hashes are strings of random characters, so you need a tool like this to identify, or at least predict which algorithm produced the hash. Hope it helps!

1

u/CtrlAltEngage 21d ago

I think they might have been asking "why do you need to know"

1

u/RopeImaginary1368 21d ago

If you're into hacking or cyber security then you know 'why do you need to know'.

1

u/CtrlAltEngage 20d ago

Ok but this isn't the hacking or cyber security rubreddits and tech people genuinely like to learn, so why not just give the answer?

1

u/RopeImaginary1368 20d ago

Dude, there are a ton of use cases, for example passwords are stored as hashes on operating systems. Vulnerable web applications use hashes as cookies. Using a tool like this you can know the type of the cookie hash and then you can crack it using a tool like hashcat, so you'll know the cookie's value.

1

u/sayboom 21d ago

Hey! In method validate you make a strip() on input data, but on method identify, you don't do that.Won’t this lead to errors?

1

u/RopeImaginary1368 20d ago

No, it won't lead to errors because we're passing the cleaned hash to the identify method after validating it in the validate method. We call strip() to ensure that the hash that is being validated doesn't contain any leading or trailing whitespaces. Because hashes with leading or trailing whitespaces are invalid, but a user can input a hash with leading or trailing whitespaces by mistake. But not calling strip() on the input hash will cause errors and will lead to wrong identification of hashes.

1

u/AutoModerator 23d ago

Every new subreddit post is automatically copied into a comment for preservation.

User: RopeImaginary1368, Flair: Command Line Interface, Title: A lightweight, niche CLI project that identifies those mysterious and pain-giving hashes

You can get this project directly using pip or uv:

Using pip:


pip install pyhashprint

Or using uv:


uv tool install pyhashprint

For source code and usage instructions see the GitHub repository.

This project of mine solves a very unique and niche problem, that is identifying hashes. Hashes are a really confusing thing because a ton of algorithms can generate them easily but it is not so easy to identify which algorithm produced the hash in question. To solve this problem, I coded this project. It can identify 90+ hashes and export results to various formats. Moreover, there's also colored output for better readability and aesthetics.

It takes a second to get this thing going, so give it a try.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.