how to get encrypted string into database
Posted: Sat Dec 26, 2015 2:04 pm
Hello,
i'm trying to send a encrypted string to my localhost database. The column in the table of course is a varbinary.
But this has some issues because it sees the string as a failure. its aes128 encrypted. encrypting and decrypting in the stack works ok.
Has anyone used mysql_real_escape_string like they use in php/mysql scripts? see https://secure.php.net/mysql_real_escape_string
It seems that using this would solve the problem, but is it usable in livecode?
i already used the info mentioned here: http://lessons.livecode.com/m/4071/l/70 ... l-database before so that's working ok.
Just the encrypted string gives some troubles.
Does anyone know how to get mysql_real_escape_string correct in this line:
put "INSERT INTO " & tTableName & " (" & tFields & ") VALUES (;1, :2)" into tSQL
many thanks for any help on this.
Sphere
i'm trying to send a encrypted string to my localhost database. The column in the table of course is a varbinary.
But this has some issues because it sees the string as a failure. its aes128 encrypted. encrypting and decrypting in the stack works ok.
Has anyone used mysql_real_escape_string like they use in php/mysql scripts? see https://secure.php.net/mysql_real_escape_string
It seems that using this would solve the problem, but is it usable in livecode?
i already used the info mentioned here: http://lessons.livecode.com/m/4071/l/70 ... l-database before so that's working ok.
Just the encrypted string gives some troubles.
Does anyone know how to get mysql_real_escape_string correct in this line:
put "INSERT INTO " & tTableName & " (" & tFields & ") VALUES (;1, :2)" into tSQL
many thanks for any help on this.
Sphere