A man has been arrested after attempting to steal a condom machine from a bar in Hungary.

Miklos Antal justified his actions to police by telling them he "met a hot girl at the bar and needed condoms for later", the Metro reports.

However, as he was low on cash, the 28-year-old decided it would be a good idea to take the machine and its contents for free.

"I thought I’d solve both my problems at once," he told the officers who arrested him.

According to witnesses, Mr Antal tried to sneak the device out of the bar in Nyiregyhaza by hiding it under his coat.

Local residents reported the theft and the would-be condom thief was given a lifetime ban from the drinking establishment.

A recent survey carried out by Durex and Harris Interactive found that 59 per cent of adults get embarrassed when buying contraceptives, with women in particular admitting being concerned by what others think.