Encrypting a character string

Encrypt your passwords and sensitive data

The Encryption service displays the encryption operation of character strings.

Data Encryption

The examples below show how to secure a character string using the post operation.


POST {{core}}/rest/encrypt/ HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
message: character string to be encrypted, enclosed in double quotes

-- Headers --
token: {{token}}
Content-Type: application/json


@Autowired
private StringEncryptor encryptor;

@PostMapping
public String encrypt()
{
    return encryptor.encrypt("password");
}