Skip to content

Computes string digests using various hashing algorithms

License

Notifications You must be signed in to change notification settings

oh-my-fish/plugin-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

hash

Plugin for Oh My Fish.

Computes string digests using various hashing algorithms.

Install

$ omf install hash

Usage

The hash function does just one simple thing: it takes an algorithm and a string, computes the string's hash with the given algorithm, and prints out the result. The string to digest can be provided either as an argument, or piped in from standard input:

# command line argument...
$ hash md5 "Hello World!"
# ...or piped
$ cat myfile.txt | hash md5

The available algorithms depend on what utilities you have installed on your system. If you have GNU coreutils installed, any of the algorithms that have an <algorithm>sum command will be available. On BSD, the core digest commands provide the md5, sha1, sha256, sha512, and rmd160 algorithms. Finally, if OpenSSL is installed, any algorithm installed for OpenSSL will also be available. To see if a given algorithm is available, you can run

$ hash -q <algorithm>

License

MIT © coderstephen et al

About

Computes string digests using various hashing algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages