Forum

FileHashes generation

Fred
17 February 2016, 00:08
Hi Hugo,
The man say that the
-s: print file hashes for current directory.

but I am not sure from that statement on how to genereae the hashes file
Is the bellow correct?
wigwam -s /etc/hiawatha/hashes/my_website.txt
or do I need to cd to etc/hiawatha/hashes abd then run
wigwam -s my_website.txt


Thank you
octavhendra
17 February 2016, 02:33
using fille hashe feature by cd in the webroot dir or dir you want to hash, e.g
/var/www/hiawatha$  wigwam -s
e63986d2c7892cec89126585c74462586359dbf246c857f3abef6c345c648903 : /var/www/hiawatha/index.html

create some file e.g /etc/hiawatha/hashes/my_website.txt which contain the hash file and inlude in your vhost like bellow
FileHashes = /etc/hiawatha/hashes/my_website.txt
Fred
17 February 2016, 14:29
Hi octavhendra
Sorry but I am still unclear.
So is FileHashes a two step process:
1. ecrypt
/var/www/hiawatha/index.html
with
wigwam -s
e63986d2c7892cec89126585c74462586359dbf246c857f3abef6c345c648903 index.html

followed by
2.
echo "e63986d2c7892cec89126585c74462586359dbf246c857f3abef6c345c648903" > /etc/hiawatha/hashes/my_website.txt 

Is that correct?
Hugo Leisink
17 February 2016, 14:32
Or simply:
cd /var/www/hiawatha
wigwam -s > /etc/hiawatha/hashes/my_website.txt
This topic has been closed.