I have done this 100% secure and working way before, but i cant find the source now - that was pretty easy though.