Skip to content
HMAC (Hash-based Message Authentication Code) in PHP
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes
tests
.gitignore
README.md
guard.php

README.md

HMAC (Hash-based Message Authentication Code)

HMAC(K, m) = hash(K1 + hash(K2 + m))

Symbol Description
K Secret key
m Message
hash Hash function chosen
K1, K2 Secret keys derived from the original K
+ String concatenation

How to use

php guard.php [option] [dir]

[dir]: Directory to be guarded.

[option]:

Option Similar Description
-h --help Show help.
-i Starts the guard of specified directory in [dir].
-t Tracking of the specified directory in [dir].
-d Disables the guard of specified directory in [dir].
You can’t perform that action at this time.