Setting Values

You can set the encrypted field type value with a string.

$entry->example = "secret";