Fix bug of encryption (check mac value) when some fields are not used.
Dynamically sort existing fields and connect them to string.
Merge pull request #1 from lulalala/encrypt_data

Fix bug of encryption (check mac value) when some fields are not used.