Encryptors

Report a typo

Encrypt the given string with TextEncryptor of the Spring Security Crypto module. Enter the missing code.

Java
String input = "information to encrypt";
TextEncryptor textEncryptor = Encryptors.text("password", "3a1f");
String encryptedInput = _________________;    // Fill in this blank
Kotlin
val input = "information to encrypt"
val textEncryptor = Encryptors.text("password", "3a1f")
val encryptedInput = _________________ // Fill in this blank
Enter a short text
___

Create a free account to access the full topic