Page 1 of 1

AES MySQL encryption issue.

Posted: Tue Sep 23, 2014 12:24 pm
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!"

Re: AES MySQL encryption issue.

Posted: Tue Sep 23, 2014 12:56 pm
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