The collector who put the machine up for sale at the Artmark auction house in Bucharest, Romania, had spotted it at a flea market in the city and bought it for just 100 euros (USD 114).
Vitally important to Nazi war efforts, the Enigma machine was used by the German military to encrypt messages into a form they believed was unbreakable.
But the code was cracked by a team of cryptologists at Bletchley Park in southern England -- a breakthrough widely credited with having shortened the war by at least two years. The instrument sold yesterday was made in Germany in 1941 and is in almost perfect condition, Vlad Georgescu, relationship manager at Artmark, told CNN.
Enigma machines were used by the German military during World War II to encrypt messages.
"It belonged to a mathematician who has spent most of his life decrypting codes," he said. When he saw it for sale at the flea market, he immediately realised what it was and was "compelled to purchase it," he explained.
Once it was in his possession, the mathematician "started trying to figure out how the machine worked" and spent time cleaning and repairing it.
"He took great care of it," said Georgescu. And he is not surprised that the machine -- which had a starting price of 9,000 euros (USD 10,300) -- sold for such a large sum. "These machines are very rare, especially entirely functional ones," he explained. In 2011, an Enigma machine which featured in a Hollywood movie about the Bletchley Park codebreakers was sold in London for a whopping 133,250 pounds (USD 208,137), breaking all previous records, the report said.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.