AES MySQL encryption issue.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
cap2cap10
Forum Contributor
Posts: 158
Joined: Mon Apr 14, 2008 11:06 pm

AES MySQL encryption issue.

Post by cap2cap10 »

Hello again, members of the PHP Technorati. Again I come seeking your guidance on the subject of AES encryption in the Mysql db. I understand that it is better to use VARBINARY instead of varchar, I have two questions:

1- Does VARBINARY allow unlimited string length or is it like varchar that allows about 220 characters?


2- How do I implement AES 256 encryption? Is it just a matter of using large salt?

Thanks in advance.

Sincerely,

Batoe
"There is no dumb question, if you don't know the answer!"
User avatar
cap2cap10
Forum Contributor
Posts: 158
Joined: Mon Apr 14, 2008 11:06 pm

Re: AES MySQL encryption issue.

Post by cap2cap10 »

OK for Question 1, upon further web search, I discovered:

VARBINARY(max)
max indicates that the maximum storage size is 2³¹-1 bytes- 29.9 mb

Batoe
Post Reply