All moneys received by the treasurer and collector shall be deposited and secured in the manner provided by section ten of the general municipal law.