Example usage for org.springframework.security.crypto.password PasswordEncoder interface-usage

List of usage examples for org.springframework.security.crypto.password PasswordEncoder interface-usage

Introduction

In this page you can find the example usage for org.springframework.security.crypto.password PasswordEncoder interface-usage.

Usage

From source file org.springframework.security.crypto.scrypt.SCryptPasswordEncoder.java

/**
 * <p>
 * Implementation of PasswordEncoder that uses the SCrypt hashing function.
 * Clients can optionally supply a cpu cost parameter, a memory cost parameter
 * and a parallelization parameter.
 * </p>

From source file org.kitodo.production.security.password.SecurityPasswordEncoder.java

public class SecurityPasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence rawPassword) {
        return encrypt(rawPassword.toString());
    }

From source file com.springsource.greenhouse.account.GreenhousePasswordEncoder.java

/**
 * A PasswordEncoder implementation that uses SHA-256 hashing implemented by the Sun provider with 8-byte random salting by default.
 * Compatibility note: this implementation does NOT perform digest iterations e.g. 1024 iterations.
 * This is for compatibility with the existing password database.
 * See {@link StandardPasswordEncoder} for an implementation that does perform digest iteration correctly (which makes its digests more secure).
 * @author Keith Donald