Yep thanks a lot, I reverted to openssl base64_encode and decode to avoid all strange characters and it works fine
I must thank you so much to have allowed me to learn how to code during these last years.
It's not possible on Joomla extensions to write multiple reviews about components so please accept my deepest thanks for all your support