New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AES DECRYPT and ENCRYPT in edit view not working #14026
Comments
|
According to the documentation (https://www.w3resource.com/mysql/encryption-and-compression-functions/aes_decrypt().php) |
|
Also, what is the error message shown? |
|
@cperrot What should be done ? |
|
After 1.5 years it's hard to remember what the issue was. Apparently AES_Encrypt only works for BINARY and VARBINARY fields. |
|
Also, aes_decrypt returns binary in phpmyadmin and must be CASTed to CHAR, unlike the mysql client and the mysql documentation which says it returns the original plaintext string. See Stackoverflow |
|
Can you please send a step by step guide to help me know what you expect? |
|
One year later, I am back on this issue and you out this block of code is blocking the execution. To make the functions works: diff --git a/js/src/table/change.js b/js/src/table/change.js
index 31a09ca6c1..9b64f4c498 100644
--- a/js/src/table/change.js
+++ b/js/src/table/change.js
@@ -270,6 +270,7 @@ function verificationsAfterFieldChange (urlField, multiEdit, theType) {
$('#salt_' + target.id).remove();
}
+ /*
if (target.value === 'AES_DECRYPT'
|| target.value === 'AES_ENCRYPT'
|| target.value === 'MD5') {
@@ -281,7 +282,7 @@ function verificationsAfterFieldChange (urlField, multiEdit, theType) {
}
}
});
- }
+ }*/
if (target.value === 'HEX' && theType.substring(0,3) === 'int') {
// Add note when HEX function is selected on a int |
…AES_* functions Fixes phpmyadmin#14026 Signed-off-by: William Desportes <williamdes@wdes.fr>
|
I made a fix for it: #16632 |
Signed-off-by: William Desportes <williamdes@wdes.fr>


Steps to reproduce
Expected behaviour
no error
Actual behaviour
having an error
Server configuration
Ubuntu 16.04 and Windows too.
Database server
Web server
phpMyAdmin
Client configuration
Firefox 58.0.2
Operating system:
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: