The new law spells out harsh punishment to cybercriminals and the process of seeking reparation by victims of cybercrime.
The country has been grappling over fake news control due to an existing lacuna in the law which has since been sealed.
"This includes search and seizure of stored computer data, record of and access to seized data, production order for data, expedited preservation, partial disclosure, real-time collection and interception of data", said Kenyatta in a statement issued in Nairobi.
Sharing fake news and initiating hate speech will now attract a fine of 5 million shillings or a 2 year imprisonment, while sharing pornographic material will attract a fine of 300,000 shillings or a 30 year imprisonment.
It deals with offences relating to computer systems including but not limited to unauthorised access, unauthorised interference, unauthorised interception, unauthorised disclosure of passwords, cyber espionage, false publications, child pornography, cyber terrorism and wrongful distribution of obscene or intimate images.
Family pay tribute to 'loving and well-loved' ex-footballer Jlloyd Samuel
His Range Rover hit a van at High Legh near Warrington, with the footballer pronounced dead at the scene. Samuel was born in Trinidad before moving to England where he represented London Schoolboys teams.
New weapons will maintain Russia's might for decades, Putin says
The Russian navy has also conducted Kalibr cruise missile attacks against Islamist insurgents in Syria's northwestern, rebel-held province of Idlib.
There's been a mysterious rise in ozone-destroying emissions
The source of the new emissions has been tracked to east Asia, but finding a more precise location requires further investigation. But the apparent increase in emissions of CFC-11 has slowed the rate of decrease by about 22 percent, the scientists found.
The assent comes amid calls for the President to revert the law back to Parliament to ensure its provisions are constitutional and do not violate the right to media freedom and expression.
Through the Cybercrimes Act, the government is going to establish a National Computer and Cybercrimes Coordination Committee.
Most offences related to online harassment have previously been charged through the ancient Penal Code and the NCIC Act.
The National Security Council chaired by President Uhuru Kenyatta was instrumental in crafting the Bill to provide a legal framework for dealing with crimes online crimes.
President Uhuru Kenyatta, DP William Ruto, Aden Duale and others at State House on May, 16, 2018.