# Encrypted Tokens

Encryption algorithms are automatically handled by the Algorithm Manager Factory.

* [JWE serializers](https://web-token.spomky-labs.com/3.2/the-symfony-bundle/encrypted-tokens/jwe-serializers),
* [JWE creation](https://web-token.spomky-labs.com/3.2/the-symfony-bundle/encrypted-tokens/jwe-creation),
* [JWE decryption](https://web-token.spomky-labs.com/3.2/the-symfony-bundle/encrypted-tokens/jwe-decryption).

You can use `symfony/serializer` to serialize/unserialize your tokens:

```php
// $serializer corresponds to the Symfony serializer
$serializer->serialize($data, 'jwe_compact');
```
