Registry / crypto / spring-security-crypto

spring-security-crypto

JSON →
library7.0.5javamavenunverified

Spring Security Crypto provides cryptographic services for secure password encoding and key generation.

<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-crypto</artifactId> <version>7.0.5</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-SECURITY-CR
S
spring-security-crypto
cryptojavav7.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BCryptPasswordEncoder
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder

Encodes a password using BCrypt.

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; public class Main { public static void main(String[] args) { BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(); String encoded = encoder.encode("myPassword"); System.out.println(encoded); } }
Debug
Known issues
gotchaBCryptPasswordEncoder default strength is 10, which may be slow on older hardware.
fix
Consider adjusting the strength parameter in the constructor.
affects: all
Upgrade
Version history
7.0.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
14
Resources
spring-security-crypto — mvn dependency:get spring-security-crypto · libregistry