Side-Channel Power Resistance for Encryption Algorithms Using Implementation Diversity