Messages appearing on locked screen
On the iPhone select Preferences -> Notifications -> Messages
Scroll to the bottom
Turn off "View on Lock Screen"


You have to repeat this for all notifications you don't want to be shown on the lock screen.