HF RL Explorer

PHP String Encryption and Decryption

PHP String Encryption and Decryption: a task in Terminal-Lego-15k (Harbor dataset). Create a PHP utility that can encrypt and decrypt strings using symmetric encryption. The utility should use a secret key to encrypt plaintext into ciphertext, and use the same key to decrypt the ciphertext back to…

The task

Create a PHP utility that can encrypt and decrypt strings using symmetric encryption. The utility should use a secret key to encrypt plaintext into ciphertext, and use the same key to decrypt the ciphertext back to the original plaintext.

Part of PrimeIntellect/Terminal-Lego-15k.