Skip to content

Instantly share code, notes, and snippets.

@tuesd4y
Created February 28, 2019 12:40
Show Gist options
  • Save tuesd4y/1701115c29e33a58b5ca637703cc7e66 to your computer and use it in GitHub Desktop.
Save tuesd4y/1701115c29e33a58b5ca637703cc7e66 to your computer and use it in GitHub Desktop.
package at.triply.backend.eventbackend.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
import org.springframework.security.crypto.password.PasswordEncoder
@Configuration
class SecurityConfiguration {
@Bean
fun passwordEncoder(): PasswordEncoder{
return BCryptPasswordEncoder()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment