Updated

The Duchess of Cambridge has tried her hand at code-breaking as she opened a museum at Bletchley Park, Britain's famed World War II deciphering center.

Kate sat at a desk and succeeded in decoding a Morse code message as she toured the center, which has been restored with an 8 million-pound ($13.6 million) lottery fund.

The royal has a family link to the park: Her paternal grandmother, Valerie Glassborow, was a civilian staff member there during WWII.

Code-breakers at Bletchley Park were credited with shortening the war by breaking German cypher systems -- code-named Enigma and Lorenz.

The site fell into disrepair after the war, but a year-long project has restored its wartime appearance and added exhibitions and visitor facilities.