An Enigma machine, used by the Nazis to encrypt messages during the Second World War, is about to go in display.

The machine, one of the few surviving, will be shown during a lecture by Dr Mark Baldwin at Midhurst Grammar School.

Dr Baldwin will tell how British code-crackers helped bring the war to an end by deciphering German wartime communications.

Identical Enigma machines, resembling typewriters, were used to encrypt and then decrypt Nazi communications.

The Germans had considered them undecipherable.

One of the machines was stolen from the Bletchley Park museum in Nottinghamshire in April 2000 and later posted to Newsnight presenter Jeremy Paxman.

The lecture, with slides, will be held at the school on February 15, at 5.45pm.

Tickets cost £20. For details, call 01798 861410. Proceeds will go towards All Hallows Church in Tillington, near Petworth.