Validating social security cards
Only the first two specific rules have any substantiated claim AFAIK.In addition the previous excluded ranges are now allowed.
As per my near-2-year-old answer I also left out is Numeric(ssn) because the field is a numeric and already strips characters before calling the validate function.I could have used regexes for repeating numbers, but with specific ones to invalidate we might as well add ones through fives to that list (over 5 will invalidate anyways due to area number validation).I also left out is Numeric(ssn) because the field is a numeric and already strips characters before calling the validate function. If someone is going to fake '321214321' they might as well fake '102319982' (and yes, I just typed that in randomly).I have had a terrible time finding documentation for SSN #'s.Most of the rules I use below have come from other programmers who work in the credit industry (no sources cited).Anyone out there know how to improve this function?
I'm not worried about shortening the code, I'm sure this could be done with better regex, I am more concerned about correct logic.
The Social Security Administration allows you to verify Social Security numbers online.
If you receive a Social Security card from a new employee and you aren't sure if it's real, or if the employee doesn't have a card or forgot the number, you can verify the number online.
Today, business owners, here's a test of your knowledge of Social Security, Social Security cards, and Social Security numbers.
These are questions about Social Security that every business owner should know the answers to.
Last week, the White House announced $9 million in funding for five pilot projects as part of its National Strategy for Trusted Identities in Cyberspace initiative, a federal effort to establish a secure, universal online identity ecosystem led by the private sector.