I'm not sure why you thought you were safe to walk alone at night. That's very naive or very stupid. This is a crippling experience for sure emotionally, but perhaps it's actually a blessing in disguise as in the future when you encounter someone looking for more than cash from you, you will be better prepared to handle the situation.
I hope this is your only interaction with such matters, but you need to make better decisions.