Teaser 2468: [Entry codes]

From The Sunday Times, 10th January 2010 [link]

The entry code to George and Martha’s block of flats is a four-digit number consisting of four different non-zero digits. Following a breach of security, management has changed the code. “I can see what they have done”, Martha says after some protracted calculations. “They have taken a multiple of the old code to give a five-digit number, added up those five digits, then squared this total to give the new code”. “Being of simple mind”, replies George, “I’d have said that they’ve simply reversed the old code”.

What was the old code?

This puzzle was originally published with no title.

[teaser2468]