gsd 2 years ago
parent
commit
3032530700
  1. 2
      src/main/java/app/utils/SaltedCookie.java

2
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

Loading…
Cancel
Save