我正在使用加密和解密它在mysql服务器中运行良好。我将从mysql服务器获取数据到sql server。我需要在sql server中执行aes_decrypt。在sql server中有任何等效的方法
MySql查询:
set @@session.block_encryption_mode = 'aes-256-cbc';
set @Key=X'a42fa5358137948a639eecac4f25f153d25f09375338c17ce6dbd79e085f0e09';
set @IV=X'0000000000000000000000000000000000000000000000000000000000000000';
Select convert(aes_decrypt(unhex('efbb757c2834b19e874ee75ac102f6c3'), @Key, @IV ) using utf8) as FIRST_NAME;
输出:
FIRST_NAME
------------
Default
先谢谢