Which algorithms are used to secure REST API from brute attacks and minimize the impact?