"She doesn't have to know" is correct.
She does not have to know.
"She don't have to know" is incorrect, but is sometimes used in informal speech and writing. Unless this is used in a humorous way, a person using "don't" this way is considered to be uneducated.
She do not have to know.





