Closed chuchuice closed 3 weeks ago
From basecode,
SCrypt
come from org.bouncycastle.crypto.generators
so you need to add dependency, e.g. org.bouncycastle:bcprov-jdk18on
if you want to use it
@chuchuice the org.bouncycastle:bcpkix-jdk18on
dependency is optional for spring-security-crypto. Make sure you add that library to your dependencies to use the SCryptPasswordEncoder
.
The problem The SCrypt class does not exist, but it is used in the internal implementation of SCryptPasswordEncoder. SCrypt isn't in the package org.springframework.security.crypto.scrypt
To Reproduce The SCrypt class must exist and implement the generate method.
Expected behavior SCrypt encryption will work without compilation errors
Sample
And