For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > June 2004 > crypt function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author crypt function
Raj

2004-06-29, 8:56 am

Hi,

What mysql datatype do I need to use for:

a) crypt on PHP
b) crypt on on mysql

Thanks in advance,

Raj
Savut

2004-06-29, 3:57 pm

varchar

Savut
http://www.savut.com

"Raj" <raj@nospam.com> wrote in message
news:6an2e05jdq5corn68rj0j5i4ouq8t0pg9v@
4ax.com...
> Hi,
>
> What mysql datatype do I need to use for:
>
> a) crypt on PHP
> b) crypt on on mysql
>
> Thanks in advance,
>
> Raj


Raj

2004-06-29, 8:56 pm

Yep,

but varchar(1), varchar(100), ... ?

Does it depend on something and if so what?

Raj

On Tue, 29 Jun 2004 14:34:34 -0400, "Savut" <webki@hotmail.com> wrote:
[color=darkred]
>varchar
>
>Savut
>http://www.savut.com
>
>"Raj" <raj@nospam.com> wrote in message
> news:6an2e05jdq5corn68rj0j5i4ouq8t0pg9v@
4ax.com...

Savut

2004-06-30, 3:57 pm

It depend on what encryption crypt use, and this depend on the system php is
running on and what is available. Just use crypt and echo the length of the
hashed string.

Savut
http://www.savut.com

"Raj" <raj@nospam.com> wrote in message
news:ojp3e09254johk7f8ebl19frqe36htmjci@
4ax.com...
> Yep,
>
> but varchar(1), varchar(100), ... ?
>
> Does it depend on something and if so what?
>
> Raj
>
> On Tue, 29 Jun 2004 14:34:34 -0400, "Savut" <webki@hotmail.com> wrote:
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com