Implementing REST in modern applications, security will be a key foundation for its development because the REST architecture requires communication between servers. In this study, we will enhance REST request security by using SHA-1 tokens and the Keccak algorithm. Tokens are the access keys for making requests. The token generation process is carried out on the server; the client will generate a token, and the server will return a valid token. This valid token can be used to request data from the server. Adding a token will impact the security and speed of REST. The token will be verified by the server and declared valid. If valid, the server will return the data; otherwise, the server will send an error message. Compared to using a token, data security is more assured. Furthermore, adding a token parameter will increase the token verification process, thus increasing the number of processes, which will impact speed. The results of this test show that server data security is better maintained and more secure compared to using a token, because anonymous users cannot access the data. The API access speed without a token is 48.8 milliseconds, while using a SHA-1 token is 62.3 milliseconds, and the Keccak algorithm is 58.9 milliseconds. The time efficiency reduction for implementing the SHA-1 token algorithm is 27.67% or 13.5 milliseconds, and the Keccak algorithm is 26.6% or 10 milliseconds.
Copyrights © 2026