# Encryption and the In-between

DevFeed: [Encryption and the In-between](<https://devfeed.tech/articles/encryption-and-the-in-between-3624.md>)

Original publisher: [Read original article](<https://laravel.com/blog/encryption-and-the-in-between>)

Author: James Brooks

Published: 2024-04-04T12:32:00Z

Content type: article

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>)

Tags: [encryption](<https://devfeed.tech/tags/encryption.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [migration](<https://devfeed.tech/tags/migration.md>)

## AI overview

The article explains how Laravel Forge migrated server notes from plaintext to encrypted storage while keeping both formats readable during the transition. It uses a custom Laravel cast to decrypt encrypted values or return legacy plaintext values, then encrypts new notes and migrates existing ones.

## Source excerpt

Last year, we introduced a simple but surprisingly useful feature to Laravel Forge: the ability to add notes to servers. While checking the uptake of this feature, we noticed that customers were ofte...