• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

password encryption spring boot mvc using hibernate

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use password encryption before it will be saved in mySQL. For this school project,
i am using Spring boot mvc together with hibernate. What is the best and simplest way to do it?
I am new to Java, spring boot, hibernate.
Any help will be appriciated.
 
Ranch Hand
Posts: 127
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring, Hibernate, PBE ... for a school project? That sounds interesting.
Unfortunately I don't know much about Spring or Hibernate - but from what I read over the years they seem to have all you need - and I'm sure some smart brains here can tell you how to do it.
 
Saloon Keeper
Posts: 12253
259
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you mean "password hashing", not "password encryption". You would only encrypt a password if you need to unencrypt it later to access some external system, which happens very rarely and even then is questionably practice. To authenticate a user, you hash a password instead.

You can use Spring Security to do user authentication and you can configure it to use a database for your users and you can also configure a hashing algorithm for passwords.

It's difficult to explain how to do it exactly without knowing how much you know about Spring.

Do you know what dependency injection is? Do you know what request filtering is? Do you know how filter chains work?
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic