← All tasks
What you'll do
Write the PHP expression that encrypts $plaintext with AES-256-CBC using a properly generated random IV.
Scenario
A previous implementation reused the same hardcoded IV for every encryption, weakening the cipher's security guarantees.
Ready to try it?
Create a free account and subscribe to take "Write AES Encryption With a Random IV". Earn 90 XP and track your internship progress.
Already have an account? Sign in