This paper presents a software implementation of paring-based two-factor authentication protocols. Such implementation is protected against simple side-channel attacks. The protocols presented here allow the authentication process using a four-digit password and a software token factor. The implementation takes advantage of the ARM Cortex-A processors features found in recent mobiles devices, and also of the Intel Haswell processors found in contemporary laptops models.