During World War II he invented a cypher machine called the Rockex[2] and handled communications at the secret intelligence base Camp X.
He soon set up the telecommunications centre, code named Hydra, at Canada's secret intelligence installation, Camp X, near Whitby, Ontario.
[10] Encryption using existing equipment was very slow, so Bayly invented a much faster solution for the purpose, an offline, one-time tape cipher machine labelled the Rockex or "Telekrypton".
[12] The Hydra station was valuable for both coding and decoding information in relative safety from the prying ears of German radio observers and Nazi detection.
[16] Bayly talks about his work during the war and his relationship with Gordon Welchman and Alan Turing in Bill Macdonald's book The True Intrepid.