For a future project, I will need to encrypt a string of characters (both letters and numbers). I need a high-security way to do this. What is a good encryption method to use that is already in PHP or can be easily added?

Also, how would I encrypt a string and how would I decrypt a string?

I think I'm looking for something like RC-5 or something like that.