github adonisjs/core v7.0.0-next.25
Add legacy encryption driver for backward compatibility

pre-release6 hours ago

Adds a new legacy encryption driver that maintains compatibility with the AdonisJS v6 encryption format.

Usage:

import { defineConfig, drivers } from '@adonisjs/core/encryption'

export default defineConfig({
  default: 'legacy',
  list: {
    legacy: drivers.legacy({
      keys: [env.get('APP_KEY')],
    }),
  },
})

Migration path:

Use this driver to decrypt existing encrypted values from AdonisJS v6, then re-encrypt them with a modern driver (aes256gcm recommended) for improved security.

Don't miss a new core release

NewReleases is sending notifications on new releases.