-
Notifications
You must be signed in to change notification settings - Fork 56
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
is there any way to open encrypted data with SQL command? #57
Comments
I encountered the same issue as you did. I am using a MySQL database, and I also want to decrypt data using SQL, but I have been trying for a long time without success. |
`SET @keybase = 'xxx'; SET @@SESSION.block_encryption_mode = 'aes-256-cbc'; -- Convert the keyBase to binary -- Convert the binary keyBase to Base64 -- Decode the keyBase from Base64 encoding -- Extract the first 16 bytes from the decoded data as the IV -- Remove the IV from the binary data -- Decrypt the data using AES_DECRYPT in MySQL |
do you have any resources to use sql server |
encryption data:e/nPxzHfbQLJrL+JjUvM5A==
I tried many methods, I thought I could open it in SQL because AES is a standard structure, but I couldn't. Can you send a sample code block?
DATABASE:MSSQL
The text was updated successfully, but these errors were encountered: