The man who blasted his way into the offices of a Maryland newspaper Thursday, killing five people, was identified by cops using sophisticated facial recognition technology.

Law enforcement sources told the Post that the gunman carried no identification when he went on his rampage in the Capital-Gazette’s newsroom, which also injured three people.

However, authorities cracked the case using sophisticated facial recognition technology less than six hours after the first shots were fired, law enforcement sources told NBC News and CNN.

His identity has not been publicly released.

Police found the gunman — described as a white male in his 30s — under a desk in of the newspaper’s newsroom and arrested him without firing a shot, said Anne Arundel County Executive Steve Schuh.

Authorities said at a Thursday afternoon press conference the shooter was found with an “explosive device” in a bag, but offered few other details other than to say it “was taken care of.”

A law enforcement source told CBS News there were either flash-bang or smoke grenades in the bag, but Schuh said the shooter appeared to have carried “inflammable liquids” in some sort of package.

The shooting at the Capital-Gazette, Annapolis’s main newspaper, is one of the deadliest mass shootings of journalists in recent years.

Terrorists killed twelve when they attacked the offices of a satirical French magazine, Charlie Hebdo, in 2015.

Officials also shot down earlier reports that he had filed off his fingerprints.

With Post Wires