Topic Wiki

Methods for procuring a TZ number:

1) Use your Meuchedet number.
2) Use your Bituach Leumi number.
3) If you have an Israeli CC, call up the company to see what number they have on file for your account.
4) Certain other companies may have a TZ on file for your account, such as HOT or others. Call them up to find it out.
5) Ask an Arab taxi driver for a receipt  ;)
6) Make one up. Make up any 9 digit number. You start off by multiplying x2 every other number starting from the second number. If there is a remainder, add it together ie; 7*2=14= 1+4=5. Now add up all 9 digits together. If the sum is divisible by 10, it is a valid TZ. If not, tweak it until it is divisible by ten. The number 087451464, we would start off by multiplying 8*2=16= 1+6=7. Then 4*2=8, it's still a single digit so it stays at 8. After finishing that process, we end up with the numbers 0+7+7+8+5+2+4+3+4=40. 40 is divisible by 10, so it means that the number is valid.

Handy site to check if Teudat Zehut is valid (and/or generate them) here

Author Topic: Faking a Teudat Zehut (TZ)  (Read 31539 times)

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #20 on: January 14, 2013, 11:05:58 AM »
He's saying that you can always sign up online if you'd like.
Visibly Jewish

Offline Galitzyaner

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2011
  • Posts: 3037
  • Total likes: 120
  • DansDeals.com Hat Tips 13
    • View Profile
Re: Re: Faking a Teudat Zehut (TZ)
« Reply #21 on: January 14, 2013, 11:49:58 AM »
He's saying that you can always sign up online if you'd like.
Thanks.  That requires I guess either taking an Arabs' #, or having to try to make one up..

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #22 on: January 14, 2013, 11:55:12 AM »
Its not too hard to make one up as I explained in the OP. Unless of course, I didn't do a good job of explaining.
Visibly Jewish

Offline Moishebatchy

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jun 2011
  • Posts: 7293
  • Total likes: 161
  • DansDeals.com Hat Tips 23
    • View Profile
  • Location: Jerusalem
  • Programs: Arzei Makolet Platinum, Yossi's Makolet Silver, Yesh! Gold, Rav Kav Dirt
Re: Faking a Teudat Zehut (TZ)
« Reply #23 on: January 14, 2013, 07:35:40 PM »
Exactly. :)

Offline Jkhein

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Oct 2010
  • Posts: 4612
  • Total likes: 17
  • DansDeals.com Hat Tips 4
    • View Profile
Re: Faking a Teudat Zehut (TZ)
« Reply #24 on: January 15, 2013, 04:08:28 PM »
@yuneeq.
I'm sorry to say, I tested it with a few genuine TZ numbers, some came out right, some were with remainder. what do you think?
and btw, not (at) all TZ start with 033.

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #25 on: January 15, 2013, 04:30:47 PM »
@yuneeq.
I'm sorry to say, I tested it with a few genuine TZ numbers, some came out right, some were with remainder.
I don't know if my code reading skills are that good, but I found a typical TZ validator over here https://www.golantelecom.co.il/gui_lib/_common/validators.js?rev=10006416 and it seems that I am right.

Code: [Select]
//If the input length is less than 9 and bigger than 5 add leading 0's
id_num = str_pad($id_num, 9, "0", STR_PAD_LEFT);

var counter = 0, incNum;
//: Validate the ID number
for(var i=0; i < 9; i++)
{
incNum = Number(id_num.charAt(i));
incNum *= (i%2)+1;
if (incNum > 9)
incNum -= 9;
counter += incNum;
}
if(counter%10 == 0)
return true;
else
return {
'valid': false,
'reason': 'E_INVALID',
'msg': 'M_INVALID_ID_NUM'
Visibly Jewish

Offline Jkhein

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Oct 2010
  • Posts: 4612
  • Total likes: 17
  • DansDeals.com Hat Tips 4
    • View Profile
Re: Faking a Teudat Zehut (TZ)
« Reply #26 on: January 15, 2013, 04:36:11 PM »
I don't know if my code reading skills are that good, but I found a typical TZ validator over here https://www.golantelecom.co.il/gui_lib/_common/validators.js?rev=10006416 and it seems that I am right.

Code: [Select]
//If the input length is less than 9 and bigger than 5 add leading 0's
id_num = str_pad($id_num, 9, "0", STR_PAD_LEFT);

var counter = 0, incNum;
//: Validate the ID number
for(var i=0; i < 9; i++)
{
incNum = Number(id_num.charAt(i));
incNum *= (i%2)+1;
if (incNum > 9)
incNum -= 9;
counter += incNum;
}
if(counter%10 == 0)
return true;
else
return {
'valid': false,
'reason': 'E_INVALID',
'msg': 'M_INVALID_ID_NUM'
English works best.

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #27 on: January 15, 2013, 05:08:11 PM »
I think a regular TZ starts with 03 so start the guesses from there.
@yuneeq.
btw, not (at) all TZ start with 033.

Never said it did.
Visibly Jewish

Offline Red

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Sep 2011
  • Posts: 2381
  • Total likes: 3
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: Yerushalayim
Re: Faking a Teudat Zehut (TZ)
« Reply #28 on: January 15, 2013, 05:14:35 PM »
Never said it did.
They don't all start with 03 or even a 0...

Offline L'Chaim

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Apr 2012
  • Posts: 775
  • Total likes: 2
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Faking a Teudat Zehut (TZ)
« Reply #29 on: January 15, 2013, 05:26:20 PM »
They don't all start with 03 or even a 0...
Starting with 3 is an oleh.

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #30 on: January 15, 2013, 05:29:46 PM »
Oops. I found out that I explained it wrong.  :'( It just happens to be that my results were good in my personal testing that I didn't realize that I was slightly off. The real method is explained here http://www.halemo.com/info/idcard in Hebrew. I was right until step 4.

Try reading what they say there, its actually not too difficult to understand, I think. After multiplying each of the odd numbers by 2, check to see if any of the multiplied numbers are in double digits. Those that are- add the two digits together and thats the final digit for that position. Say for example the 2nd number was 7, which gets multiplied by 2 to equal 14, add 1+4=5, now your 2nd number is 5.
After you finish single-digitizing all the numbers, add all the numbers together. If the sum is divisible by ten, you have an authentic TZ.

Yeh, I know it sounds complicated, but it definitely easier than understanding  the code that verifies it.

Code: [Select]
function add10( $num ) {
        // handles max 999
        $d100 = floor($num/100);
        $num = $num-($d100*100);
        $d10 = floor($num/10);
        $num = $num-($d10*10);

        return $d100 + $d10 + $num;
    };

    if( strlen($zehut) > 9 ) {
        return false;
    }

    $arrZehut = array();

    if( preg_match( '/(d)(d)(d)(d)(d)(d)(d)(d)(d)/', $zehut, $arrZehut ) == 0 ) {
        // Do not match
        return false;
    }


    $pos = 1;
    $s = 0;
    for( $i=1; $i<=9; $i++ ) {
        $s += add10( $arrZehut[$i] * $pos );
        $pos = 3-$pos; // pos is 1-2-1-2-1-2-1-2-1
    }

    return (( $s % 10 ) == 0 );
} // end of is_valid_zehut()

?>
Visibly Jewish

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #31 on: January 15, 2013, 05:31:42 PM »
They don't all start with 03 or even a 0...
Starting with 3 is an oleh.

Guess I'm outgunned on this one  :-X
Visibly Jewish



Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #34 on: January 27, 2013, 02:09:33 PM »
Updated the wiki  :)
Visibly Jewish

Offline Let3

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Dec 2012
  • Posts: 1108
  • Total likes: 34
  • DansDeals.com Hat Tips 0
    • View Profile
  • Location: New Jersey
Re: Faking a Teudat Zehut (TZ)
« Reply #35 on: April 08, 2013, 08:04:27 AM »
or easier is take an arab taxi ask him for a receipt and bam u got urself a TZ . or use ur muchedet number

nut either way thanks for the help!
1)is the meuchedet number supposed to be your reg pasport number? just checked mine- they got the last three dig off..
2) if using meuchedet number for golan (assuming its not your pasport number) you dont use the "9" beforehand correct?
(otherwise its ten numbers?)

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #36 on: April 08, 2013, 08:39:59 AM »
1)is the meuchedet number supposed to be your reg pasport number? just checked mine- they got the last three dig off..
2) if using meuchedet number for golan (assuming its not your pasport number) you dont use the "9" beforehand correct?
(otherwise its ten numbers?)

1) Its your passport number with a 9 in the beginning. On mine, the last digit was wrong.

2) Idk, I never used it
Visibly Jewish

Offline Let3

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Dec 2012
  • Posts: 1108
  • Total likes: 34
  • DansDeals.com Hat Tips 0
    • View Profile
  • Location: New Jersey
Re: Faking a Teudat Zehut (TZ)
« Reply #37 on: April 08, 2013, 08:43:51 AM »
so seams they get the numbers wrong often-
are there better chances of their wrong number working for phone plans over my pasport number?

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8920
  • Total likes: 4112
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Faking a Teudat Zehut (TZ)
« Reply #38 on: April 08, 2013, 08:59:23 AM »
so seams they get the numbers wrong often-
are there better chances of their wrong number working for phone plans over my pasport number?

Probably better chances with their number. They probably change the passport number to be a valid TZ number (like the last option in the wiki).
Visibly Jewish

Offline Moishebatchy

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jun 2011
  • Posts: 7293
  • Total likes: 161
  • DansDeals.com Hat Tips 23
    • View Profile
  • Location: Jerusalem
  • Programs: Arzei Makolet Platinum, Yossi's Makolet Silver, Yesh! Gold, Rav Kav Dirt
Re: Faking a Teudat Zehut (TZ)
« Reply #39 on: April 08, 2013, 09:12:21 AM »
Probably better chances with their number. They probably change the passport number to be a valid TZ number (like the last option in the wiki).

That.