How does one determine if a polynomial is the difference of two squares?

Difference of two squares would be x^2-b

Where,if you take the square root of b, it is a whole number.

ex: x^2-64
sqrt64=8
factored: (x-8)(x+8)