Thank you so much guys !
As always, everybody in this forum is awesome.
I think I'll use native functions (xorencode/decode) although I wanted to put encrypted strings into a database (it will be larger to store)
I was seeking an answer thinking it was possible to find an equivalent to ord(),chr()... with an utf-8 string... I was wrong, it's not so easy to manipulate those strings

Thanks again !