
br.com.jhonsapp.finaluser.encryption.EncryptionBCrypt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of final-user Show documentation
Show all versions of final-user Show documentation
A bunch of classes that help developers building login and authentication.
The newest version!
package br.com.jhonsapp.finaluser.encryption;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class EncryptionBCrypt implements Encryption {
private static Encryption instance;
private BCryptPasswordEncoder bcry = new BCryptPasswordEncoder();
private EncryptionBCrypt() {
}
public static Encryption getInstance() {
if (instance == null)
instance = new EncryptionBCrypt();
return instance;
}
@Override
public String encrypt(String data) {
return bcry.encode(data);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy