Plenty of guides (and ready made open source code) online if you actually search for it.
somedude3488 commented: Awesome. Wish I knew about that site before. +4
theimben commented: Thanks for your help - !Unreal +2
scru commented: Thank you, sometimes I'm just plain too lazy to be articulate. +4
FlashCreations commented: Great Suggestion! This is the easiest way and probably abother I will use to protect my file!! +1
scarcella commented: Nice code! It worked! +0
Shanti C commented: good working on threads... +2
Shanti C commented: Nice Answer.... +2
OmniX commented: Thankyou for the help, much appericated :) +1