factor a binary polynomial



is it possible to factor a polynomial over a finite field (e.g., Z/2Z)?
e.g.,
factor(1 + x + x^2 + x^3 + x^6, Z/2Z)
=> (1+x+x^2)(1+x^3+x^4)

thanks!