1. What did you buy?

2. What was bought by you?

---------------------
Is #2 the passive of #1?

Yes, 2 is the passive of 1.