 He spent the rest of the night formalizing his idea, and he had much of the paper ready by daybreak.The algorithm is now known as RSA – the initials of their surnames in same order as their paper.Clifford Cocks, an English mathematician working for the British intelligence agency Government Communications Headquarters (GCHQ), described an equivalent system in an internal document in 1973.