15 lines
293 B
TypeScript
15 lines
293 B
TypeScript
import { defineConfig, drivers } from '@adonisjs/core/encryption'
|
|
import env from '#start/env'
|
|
|
|
const encryptionConfig = defineConfig({
|
|
default: 'app',
|
|
list: {
|
|
app: drivers.aes256gcm({
|
|
id: 'app',
|
|
keys: [env.get('APP_KEY')],
|
|
}),
|
|
},
|
|
})
|
|
|
|
export default encryptionConfig
|