Refactored out secure compare string, and added variables for magic numbers