From 3ec3a4294c3326de0b44b2076fd1f5f558840723 Mon Sep 17 00:00:00 2001 From: richie Date: Thu, 21 Mar 2019 20:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E7=A0=81=E9=81=BF=E5=85=8D=E5=AD=98?= =?UTF-8?q?=E6=98=8E=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/redis/core/pool/RedisConnectionProxyConfig.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/fr/plugin/db/redis/core/pool/RedisConnectionProxyConfig.java b/src/main/java/com/fr/plugin/db/redis/core/pool/RedisConnectionProxyConfig.java index 7748ccf..1406841 100644 --- a/src/main/java/com/fr/plugin/db/redis/core/pool/RedisConnectionProxyConfig.java +++ b/src/main/java/com/fr/plugin/db/redis/core/pool/RedisConnectionProxyConfig.java @@ -4,6 +4,7 @@ import com.fr.config.ConfigContext; import com.fr.config.DefaultConfiguration; import com.fr.config.holder.Conf; import com.fr.config.holder.factory.Holders; +import com.fr.security.SecurityToolbox; import com.fr.stable.StringUtils; /** @@ -68,11 +69,12 @@ public class RedisConnectionProxyConfig extends DefaultConfiguration { } public String getPassword() { - return password.get(); + String text = password.get(); + return SecurityToolbox.decrypt(text); } public void setPassword(String password) { - this.password.set(password); + this.password.set(SecurityToolbox.encrypt(password)); } public String getPrivateKeyPath() {