Leonardo DiCaprio is hotly tipped to play Enigma codebreaker Alan Turing in a biopic of the British mathematician.
Deadline reports that Warner Bros have outbid several independent studios with a seven figure sum for the rights to the The Imitation Game - written by first-time screenwriter Graham Moore - as Leonardo is keen to play the lead.
Turing was prosecuted by British authorities after the war for having a sexual relationship with another man, and forced to undergo "chemical castration" instead of being sent to prison for his sexuality.
The genius mathematician and computer scientist committed suicide by eating an apple laced with cyanide and it is claimed Steve Jobs named his company Apple as a tribute to him.
Turing appeared to be written out of the 2001 film Enigma, about the Bletchley Park codebreakers, despite being the leading figure at the World War II centre.
Dougray Scott's character Jerico seemed to resemble Turing, but he was heterosexual and had an affair with Kate Winslet's character.
Director Ron Howard is said to be interested in the film, but no deals have yet been made.
Leonardo, who will next be seen playing the title role in Clint Eastwood's J Edgar, has been shooting Baz Luhrmann's The Great Gatsby.
After that, he is set to play the villain in Quentin Tarantino's controversial spaghetti western Django Unchained.