Changes between Version 3 and Version 4 of Other topics


Ignore:
Timestamp:
04/29/26 23:46:06 (2 days ago)
Author:
231035
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Other topics

    v3 v4  
    137137}}}
    138138* Native queries are executed using named parameters such as :startTs and :endTs, which are bound by Spring Data JPA. This prevents SQL injection because input values are treated as parameters, not as executable SQL.
     139=== Keeping passwords
     140*Password security is implemented using {{{BCryptPasswordEncoder}}}, which hashes user passwords before storing them in the database. This ensures that passwords are not stored in plain text and provides protection against brute-force and dictionary attacks.
     141{{{
     142
     143    @Bean
     144    public PasswordEncoder passwordEncoder() {
     145        return new BCryptPasswordEncoder();
     146    }
     147}}}
    139148
    140149== Other developments