Search for a tool
French ID Card

Tool to understand and calculate the digits and information present on French identity cards (the 2 lines of 36 characters at the bottom of the card)

Results

French ID Card -

Tag(s) : Fun/Miscellaneous

Share
Share
dCode and you

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best French ID Card tool. Thank you.

French ID Card

Sponsored ads

Card Code Generator (2 Lines)





//

Checksum Calculator


See also: IBAN Number

Tool to understand and calculate the digits and information present on French identity cards (the 2 lines of 36 characters at the bottom of the card)

Answers to Questions

What does the French ID card code means?

The French identity ID card contains 72 characters on 2 lines (36 characters each). The first line starts with the letters ID followed by the country code of France: FRA, explanations:

PositionMeaning of content
1-2ID
Always the 2 letters ID (for IDentity)3-5
FRAAlways the 3 letters FRA, ISO3166 country code on 3 characters
6-30DCODE‹FR‹‹‹‹‹‹br>‹‹‹‹‹‹‹‹‹‹‹‹
Lastname on 25-character, formatted in uppercase without accent, with the character ‹ replacing any non-alphabetical character.31-33
Department number on 3 digits (before 2017 the department was on 2 digits followed by the number of the sub-prefecture)34-36
ID of the agent having registered the card

Example: ID FRA DCODE ‹FR ‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹ 001 123

The second line begins with the date of issue of the card followed by additional information including checksum codes, explanations:

PositionMeaning of content
1-2Year (on 2 digits) of creation of the card
3-4Month (on 2 digits) of creation of the card
5-73-digit department number (same as characters 31-33 of line 1)
8-12Numeric code assigned by the card management system (chronologically incremented code)
13Control key of the preceding 1-12 characters
14-27SITE‹‹‹‹‹‹‹‹‹‹
first name on 14-character, formatted in uppercase without accent, with the character ‹replacing any non-alphabetic character and a double chevron ‹‹ for to separate the possible second and third given names.28-33
Birth date in the format YYMMDD34
Date of birth control key (characters 28-33)35
Sex (M or F)36
Control key of all previous characters (first line of 36 characters + second line of 35 characters)

Example: 19 06 001 12345 6 SITE ‹‹‹‹‹‹‹‹‹‹ 090101 5 M 1

How to calculate checksums?

The checksum is a number (from 0 to 9) it is calculated by associating with each character a value: 0 for the character <, 1,2,3,4,5,6,7,8,9 for numbers and 10 for A, 11 for B, etc. up to 35 for Z.

For each character, multiply it by one factor (among 3), the first will be multiplied by 7, the second by 3, the third by 1, then again the fourth by 7, the fifth by 3, etc.

Sum all the numbers obtained, and record the units digit of the total.

This digit is the control/checksum key.

Example: Calculate the sum and the control key for DCODE1<, the sum is 91+36+24+91+42+1+0=285 and so the key is 5 :

D13*7=91Σ=91
C12*3=36Σ=127
O24*1=24Σ=151
D13*7=91Σ=242
E14*3=42Σ=284
11*1=1Σ=285
0*7=0Σ=285

Source code

dCode retains ownership of the source code of the script French ID Card online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online French ID Card script for offline use on PC, iPhone or Android, ask for price quote on contact page !

Questions / Comments


Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best French ID Card tool. Thank you.


Source : https://www.dcode.fr/french-id-card
© 2019 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode
Feedback