Convert Unencrypted Custom Fields

It's possible that when we a custom field was originally created, it was not set to be encrypted, but then as business requirements change, you may want to encrypt them down the line.

This command will take your previously unencrypted custom field, mark it as encrypted, walk through the assets that have a value for this field and encrypt them. This is all wrapped in a transaction, so if any part of that process fails, it will all roll back to the original state.

php artisan snipeit:customfield-encryption _snipeit_your_custom_field_db_column

You'll want to get that last parameter for this script by looking at your Settings > Custom Fields listing and making the db_column column visible, so you know what that database column is called in the database.