Now uses the correct secret when creating a hash.