diff --git a/src/main/java/app/utils/SaltedCookie.java b/src/main/java/app/utils/SaltedCookie.java index f4f2379..05c3bec 100644 --- a/src/main/java/app/utils/SaltedCookie.java +++ b/src/main/java/app/utils/SaltedCookie.java @@ -24,13 +24,13 @@ public class SaltedCookie { @Autowired public SaltedCookie() { secret_keys = new HashMap<>(); + fillSecretKeys(); } public String Hashed(String value) { return DigestUtils.md5DigestAsHex(String.format("%s+%s", value, salt).getBytes()); } - @PostConstruct public void fillSecretKeys() { //1. Когда указан только один глобальный //grgd9743gsdgdrgdrg7gvcb7gdg790rdgg7drg