Learn how to lock and unlock on your Samsung Galaxy Alpha. Pressing the Power button turns off the screen and locks it. Also, the screen turns off and automatically locks if the device is not used for a specified period.
You can change the unlock code to unlock the screen. For more information refer Screen Lock Setting.