|
|
@ -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
|
|
|
|