Preheat oven to 350 degrees. In a medium bowl, combine flour, salt, baking soda and baking powder. In a separate mixing bowl, cream together butter and peanut butter until smooth. Add both sugars, and beat until fluffy. Add eggs, one at a time, and mix until blended. Blend in vanilla.