Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for option to print/return only the hash value #259

Closed
rhash opened this issue Feb 24, 2024 Discussed in #217 · 2 comments
Closed

Request for option to print/return only the hash value #259

rhash opened this issue Feb 24, 2024 Discussed in #217 · 2 comments
Labels
done The issue is fixed/applied/implemented FR

Comments

@rhash
Copy link
Owner

rhash commented Feb 24, 2024

Discussed in #217

Originally posted by JavascriptCockup September 19, 2022
As title, would like an even simpler version of the --simple output format option, where only the actual hash value is returned - no filename or other information.


I think good name for the command line option would be one of: --no-filename, --no-path, --only-hash.

For quick workarround see @greisch answer in #217.

@rhash rhash added the FR label Feb 24, 2024
@rhash rhash added the done The issue is fixed/applied/implemented label Oct 2, 2024
@rhash
Copy link
Owner Author

rhash commented Oct 2, 2024

Supported by f405c3a.
Now formatting option --one-hash prints the selected hash and new line (LF symbol):

$ rhash --one-hash --md5 --message "abc"
900150983cd24fb0d6963f7d28e17f72

@rhash
Copy link
Owner Author

rhash commented Oct 14, 2024

The feature is included into RHash v1.4.5.

@rhash rhash closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done The issue is fixed/applied/implemented FR
Projects
None yet
Development

No branches or pull requests

1 participant