New: Add hidden option MAIN_SECURITY_HASH_ALGO to choose hash function