MySQL Forums
Forum List  »  Quality Assurance

Each byte's range of KeyString for AES_Encrypt function(Only support ascii?)
Posted by: Lee Mitchell(powerdev.org)
Date: June 27, 2008 02:11PM

Hi...
But i'm not happy, because nodody answer to my questions.
Anyway, here is new question.


When i use AES_ENCRYPT with a cihper key,
i wanna use the key as binary stream.
Like this,

1. make SQL syntax. before crypted querying.
- unsigned char *pKey = {0x01, 0x01, 0x03, ..., 0x16};
- sprintf(szTemp, "SET @key='%s';", pKey); //this line working properly.


2. and querying.
- mysql_query(...)

3 But, i can't go forward to get next querying,
because MySQL got error like below.
- "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '???????????' at line 1"

We just use only ascii stream?
Is that really security?... i can't make a decision...

Let's share any thing for about my aricles.

Options: ReplyQuote


Subject
Views
Written By
Posted
Each byte's range of KeyString for AES_Encrypt function(Only support ascii?)
3098
June 27, 2008 02:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.