Any person in this state indebted to other persons shall have the right to prefer one or more of such creditors in good faith to secure a valid debt, which preference may be manifested by payment, by mortgages, either real or chattel, or by the transfer of personal property or real estate, and if received by the creditor in good faith, such conveyance or mortgage shall be valid in the hands of the mortgagee and constitute a preference to the extent thereof, subject to the laws relating to the filing and recording of mortgages.
R.L. 1910, § 2901.