How can I check the EU social security number?

Is there a regular expression for a social security number (id) in the EU?

+3
source share
2 answers

I can tell you, while living in the UK, that there is no SSN, but there is the equivalent of a national insurance number. In my experience, with the exception of my employer, NOBODY needed this number. In accordance with the United States guidelines for PII (personal identification information), you should not even collect partial SSNs where possible.

It might be a good idea to consider other methods of collecting data and verifying users (or whatever your use case) before requesting an SSN, national insurance number, or any other unique number issued by the government.

+1
source

http://en.wikipedia.org/wiki/National_identification_number

It looks like you need to implement a unique verification method for each SSN country. Regex is not enough, fake SSN may look real, but it is not. There is a specific algorithm for generating the entire SSN for each country.

+1
source

Source: https://habr.com/ru/post/1734984/


All Articles