Skip to content

kk0128jp/pyhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Options

python pyhash.py -h
usage: pyhash.py [-h] [--algorithm {md5,sha1,sha256,sha384,sha512}] [--string STRING] [--file FILE] [--hash HASH] {sthash,filehash,comp}

python hash tool

positional arguments:
  {sthash,filehash,comp}
                        使用するオプション

options:
  -h, --help            show this help message and exit
  --algorithm {md5,sha1,sha256,sha384,sha512}
                        ハッシュアルゴリズム
  --string STRING       ハッシュする文字列
  --file FILE           ファイルパス
  --hash HASH           期待されるハッシュ値

Example

文字列のハッシュ値を取得

python pyhash.py sthash --algorithm sha256 --string test        
ハッシュ値: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

ファイルのハッシュ値を取得

python pyhash.py filehash --algorithm sha256 --file ./pyhash.py
ファイルのハッシュ値: aba85b466692ac19f9f851dfd773abdf69f7a3bef11dea87b26aa59dfb70c3f4

ハッシュ値の比較

python pyhash.py comp --algorithm sha256 --file ./pyhash.py --hash aba85b466692ac19f9f851dfd773abdf69f7a3bef11dea87b26aa59dfb70c3f4  

ハッシュ値は一致しています

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages