Download — Work Org.springframework.security.crypto

Latest Versions * Central (261) * Spring Milestones (83) * Spring Lib M (1) * Atlassian (5) * Alfresco (2) Maven Repository

As of May 2026, securing applications is more critical than ever. The org.springframework.security.crypto package, distributed within the spring-security-crypto library, is the standard, dedicated module for handling password hashing, key generation, and symmetric encryption within the Spring ecosystem. download org.springframework.security.crypto

The modern standard is DelegatingPasswordEncoder , which allows you to upgrade your hashing algorithm without breaking existing passwords. It defaults to BCrypt, but supports SCrypt, Argon2, and more. Latest Versions * Central (261) * Spring Milestones

The spring-security-crypto module is a lightweight, standalone library, meaning it has no required dependencies on other Spring Security or Spring Framework jars. This makes it an ideal choice for projects needing robust cryptography without pulling in the entire Spring Security framework. Key Features It defaults to BCrypt, but supports SCrypt, Argon2, and more

// Encrypts text TextEncryptor encryptor = Encryptors.text("password", "salt"); String encryptedText = encryptor.encrypt("Hello World"); String decryptedText = encryptor.decrypt(encryptedText); Use code with caution. 3. keygen (Key Generation)