Wash the red beans thoroughly and soak them sufficiently.
Put the soaked red beans into boiling water, boil, and replace the water as needed until the beans are completely cooked.
Drain the cooked beans using a sieve, then mash them finely.
Place the mashed beans in a pan, add sugar and salt, and simmer over low heat while stirring with a wooden spatula.
When the mixture becomes thick, turn off the heat and let it cool.