David Gilden wrote:
Hello,
Hello,
I am building a primary key for a database, and I guess the first question would be
how safe is a key made from the last 4 digits of a social security num and the first
3 letters of the last name.
Do you mean safe as in unique? Or do you mean safe because you ar
David Gilden wrote:
$ss = '1234567890';
$lname = 'Gilden';
# $pkey = substr($ss,length($ss)-4,length($ss)) . substr($lname,0,3);
Why not just:
$pkey = substr($ss, -4) . substr($lname,0,3);
$ss = '09876543';
$lname = 'Smith';
# this line is bad! -- trying to have the same functionality as th
> Hello,
>
> I am building a primary key for a database, and I guess the first
question would be
> how safe is a key made from the last 4 digits of a social security num
and the first
> 3 letters of the last name.
I would guess not very, but I don't know what your target sample size
is. I kn
David Gilden wrote:
> Hello,
>
> I am building a primary key for a database, and I guess the first
> question would be
> how safe is a key made from the last 4 digits of a social security
> num and the first 3 letters of the last name. Now for the PERL
> question, I have substr. line working cor
Hello,
I am building a primary key for a database, and I guess the first question would be
how safe is a key made from the last 4 digits of a social security num and the first
3 letters of the last name. Now for the PERL question, I have substr. line working
correctly.
I wanted to try it with