Continuing from previous commit ... use CI_Encryption::substr()