Republicans have introduced a draft bill to ban end-to-end encryption after Apple failed to unlock the Pensacola shooter's iPhone despite Attorney General Bill Bar ordering them to.

The bill was proposed by Senator Lindsey Graham and it is titled the 'Eliminating Abusive and Rampant Neglect of Interactive Technologies Act of 6 2019'’ or the 'EARN IT Act of 2019'.

It comes less than two weeks after AG Barr slammed Apple for not cooperating with his department's inquiries into the Penscaola shooter's iPhone.

Barr ordered Apple to unlock and decrypt shooter Mohammed Alshamrani's two iPhones but it said it could not.

The company said it did everything it could but that even it could not bypass some of its own encryption and privacy settings. Barr fumed over the result.

The draft bill titled 'Eliminating Abusive and Rampant Neglect of Interactive Technologies Act of 6 2019' or the 'EARN IT Act of 2019' which would give law enforcement a backdoor to access encrypted information on phones

The new bill proposes a backdoor for law enforcement to be able to overrule some of the companies' privacy laws if a commission agrees with it.

Three American sailors were killed and eight other people were wounded when Saudi military trainee Mohammed Alshamrani (pictured)

It would not only affect Apple but Facebook too, which applies encryption to its messaging services on Facebook Messenger and WhatsApp.

In his draft bill, Graham outlines that the commission would be chaired by Barr.

Major tech companies including Facebook and Apple have not yet responded to the proposed bill.

Earlier this month, Barr demanded that Apple unlock two cellphones used by a gunman who carried out a mass shooting at a Florida military base.

Barr made the high profile request at a press conference where he branded the attack an 'act of terrorism'.

Three American sailors were killed and eight other people were wounded when Saudi military trainee Mohammed Alshamrani opened fire in a classroom at the US Naval Air Station in Pensacola on December 6.

Alshamrani, 21, who was training to be a naval flight officer, was then killed in a shoot-out with police.

Federal officials are still investigating the shooting and examining evidence.

Investigators have been unable to access the two devices - an iPhone 7 and an iPhone 5 - because they are locked and encrypted, according to a letter from the FBI's general counsel, Dana Boente.

Apple has long touted security as a major feature of its phones and in 2014 began building encryption into devices that can only be unlocked with a password or fingerprint reader

Barr's latest appeal for Apple's cooperation marked an escalation of the Justice Department's ongoing fight with the tech giant over the balance between personal privacy and public safety.

'This situation perfectly illustrates why it is critical that the public be able to get access to digital evidence,' Barr said, accusing Apple of providing no 'substantive assistance'.

The attorney general indicated that he intends to use the Alshamrani case to push for a solution to the DOJ's struggle to get around Apple security features.

'We don't want to get into a world where we have to spend months and even years exhausting efforts when lives are in the balance,' he said.

'We should be able to get in when we have a warrant that establishes that criminal activity is underway.'

Riana Pfefferkorn, a member of the Stanford Law School’s Center for Internet and Society, said it would give Barr too much power.