The fact is that one payment system accepts only the Latin alphabet (And there is a need to transfer a Russian word to my processor. Is there any function that encrypts and decrypts in the same way in both php and js. For example, if there was a function in js transfer to the 64th number system, as in php, I would process the word with js, and in a php handler I would bring it back to normal. So js was written by base64_encode / base64_decode lovers, but sometimes does not coincide with php encryption for some reason. And then the question will be someone can have nktsiya to transform in transliteration and back?

    1 answer 1

    I would use either base64 or uuencode .


    As for base64 , this encoding is reversible and unambiguous, which means that, most likely, there was an error somewhere in your code. As an alternative javascript implementation, you can try this one.

    As for uuencode , in php this is implemented using convert_uuencode , in javascript there is a port of this function itself.

    • Thank you, but do not tell me anything about the translit? - iproger
    • @mctrane Google usually works wonders :) You can use any of the options described [ here. ] [1] [1]: forum.dklab.ru/js/other/Translit.html - Costantino Rupert