Text this: The effect of switching and cycle-to-cycle variations of RRAM on 4-bit encryption/decryption process