The invention generally relates to the extraction of rare earth elements and heavy metals from geothermal fluids used in geothermal electrical production. The host adapter includes first and second encryptiondecryption processors and a first-in-first-out buffer. The DA conversion circuit is configured to generate a second signal based on an N-bit logical signal.