mysql如何使用aes加密和解密列

时间:2015-06-24 01:44:12

标签: mysql phpmyadmin aes password-protection qsqlquery

我有以下名为MYTABLE的表,其中包含以下列

final String cleanLink = StringUtils.strip(link).replaceAll(" ", "%20").replaceAll("'", "%27");
String regex = Pattern.quote(link);
// end and re-start literal matching around my or condition
regex = regex.replaceAll("&", "\\\\E(&|&)\\\\Q");
final Pattern pattern = Pattern.compile(regex);
final Matcher matcher = pattern.matcher(result);

while (matcher.find()) {
    int index = result.indexOf(matcher.group());
    while (index != -1) {
        // this replaces the links with & with the same links with &
        // because cleanLink is from the DOM and has been properly decoded
        result.replace(index, index + matcher.group().length(), cleanLink);
        index += cleanLink.length();
        index = result.indexOf(matcher.group(), index);
        linkReplaced = true;
    }
}

我只能通过PHPMYADMIN使用它。

我的目标是:

  • 使用唯一密钥加密(AES 256或AES 512)密码列
  • 使用密钥解密列并通过SQL查询可视化所有列

有可能吗?

0 个答案:

没有答案