Is it possible to share an Ethernet connection to a secure wireless network in OS X on a MacBook Pro?
Go to the Search bar
System Preferences -> Sharing ->  Internet Sharing - Share your connection from ethernet -> to computers using Wifi -> Wifi Options -> Security WEP 128 Bit

This thread is the same as
How to share internet with WPA/WPA2 security?