Research on Power Analysis Against Software-based and Hardware-based Cryptographic Circuits