Updated code style

C++ static_casts
updated version of Encryptions
makefile will also generate libHashes.a
Added test file to use test function