By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,013 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

Crypt datatype and datatype size

P: n/a
Raj
Hi all,

I am using crypt on PHP to encrypt a word and am in the process of
setting up the mysql databse to store the encypted word.

For the mysql database:

1) What datatype should I use? varchar, tinyblob, ... ?
2) what size do i need? varchar(10)/(20)/(30)?

Thanks in advance,

Raj
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Raj wrote:
Hi all,

I am using crypt on PHP to encrypt a word and am in the process of
setting up the mysql databse to store the encypted word.

For the mysql database:

1) What datatype should I use? varchar, tinyblob, ... ?
2) what size do i need? varchar(10)/(20)/(30)?

Thanks in advance,

Raj


how much data will be encrypted by crypt? what is the maximum number of
characters to be "crypt()'ed"? In doing some testing, using a 26 byte
key, a ten character input generates a 13 character output. YMMV.

Michael Austin.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.