Spring Security's org.springframework.security.crypto.encrypt.Encryptors class has factory methods that can be used to create symmetric encryptors. The class supports two encryptors:
- BytesEncryptor: The service interface for symmetric data encryption of data in the form of raw byte arrays.
- TextEncryptor: The service interface for symmetric data encryption of text strings: