Have you considered prefixing encrypted payload with a version identifier? Related https://github.com/aidin36/simpletextcrypt/issues/12