fix EncryptionTool's bug: about decode's length