Como você criptografa e descriptografa uma string PHP?

O que eu quero dizer é:

Original String + Salt or Key --> Encrypted String
Encrypted String + Salt or Key --> Decrypted (Original String)

Talvez algo como:

"hello world!" + "ABCD1234" --> Encrypt --> "2a2ffa8f13220befbe30819047e23b2c" (may be, for e.g)
"2a2ffa8f13220befbe30819047e23b2c" --> Decrypt with "ABCD1234" --> "hello world!"
Em PHP, como você pode fazer isso?

Tentativa de usarCrypt_Blowfish, mas não funcionou para mim.

questionAnswers(6)

yourAnswerToTheQuestion