1. An integrated circuit comprising: a programmable logic device (PLD) having a plurality of gates or logics; and a control circuit coupled to the PLD, wherein the control circuit is to: detect that a reconfiguration criterion is satisfied; and responsive to the reconfiguration criterion being satisfied, configure, using one or more randomizations, the PLD to implement a secret operation, wherein a first randomized configuration of the PLD uses a first subset of the plurality of gates or logics and results in a first circuit implementation that is different from, but functionally equivalent to, a second circuit implementation that uses a second subset of the plurality of gates or logics and results from a second randomized configuration of the PLD.