Legal suretyship may be given whenever the law requires or permits a person to give security for an obligation. The principal obligor may in lieu of legal suretyship deposit a sum equal to the amount for which he is to furnish security to be held in pledge as security for his obligation.
La. C.C. § 3068