The tenses don't match, and the intended meaning is not very clear. Do you mean that you will be in danger as long as she doesn't know, but you will no longer be in danger if/when she finds out? If so, you could perhaps say "As long as she doesn't know, I will be in danger".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.