Rinse the dried beans in water making sure to get rid of any dirt that might be hanging out.
Add the beans to a large pot and cover with water. (Make sure there is about 4 inches of water above the dried beans - they will soak up a lot of water)
Cook the beans for 2 1/2 hours. Bring the water to a boil and the cover and reduce to a simmer.
Once the beans are cooked, drain the excess water and set aside.
In a large skillet add the olive oil over medium high heat. Saute the onions along with the red pepper flakes, paprika and cayenne pepper for about 5 minutes. Add in the drained beans and 1 cup of water. Using an immersion blender, lightly blend the beans until they have a consistency of mashed beans. Season with salt as needed.