Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.hash; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; /** * * @author Cipri */ public class HashCode { public String getHashPassword(String password) { BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(12); String hashedPassword = passwordEncoder.encode(password); System.out.println(hashedPassword); return hashedPassword; } }