The measure was proposed by the government after a rare public debate about sex crimes, which followed a social media campaign that led to the arrest of a suspected sex offender.
A new article added to the Criminal Procedure Law would ban investigative authorities from disclosing information about victims in such crimes, except to defendants or their lawyers. It will take effect once approved by President Abdel Fattah al-Sisi.
"When we observed that there is a reluctance to report specific crimes... and that some of the victims feared for their reputation from being named in such crimes, the government submitted a bill to encourage citizens to report these crimes," Justice Minister Omar Marwan told parliament on Sunday.
Last month the public prosecutor charged Ahmed Bassam Zaki, a university student, with indecent assault of at least three women. He had been the target of a campaign on Instagram from an account that included postings by women accusing him of sex crimes. He is being held pending investigation.
The case drew widespread attention from media, religious figures and women's groups.
Campaigners say a deep-rooted bias in the conservative, Muslim-majority nation means women often face more blame for behaviour deemed provocative than men face for sex crimes.
Need help in NZ?
Women’s Refuge: 0800 REFUGE or 0800 733-843
Shine: 9am-11pm every day, 0508 744-633
Shakti: for African, Asian and Middle Eastern women and children. 0800 742-584
Rape Crisis: 0800 883-300