This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
wikipedia-game-solver/apps/api/config/hash.ts
Théo LUDWIG 4add77856e
All checks were successful
Chromatic / chromatic (push) Successful in 2m58s
CI / ci (push) Successful in 4m43s
CI / commitlint (push) Successful in 15s
chore: try Adonis Tuyau
2024-08-16 01:50:11 +01:00

24 lines
500 B
TypeScript

import { defineConfig, drivers } from "@adonisjs/core/hash"
const hashConfig = defineConfig({
default: "scrypt",
list: {
scrypt: drivers.scrypt({
cost: 16384,
blockSize: 8,
parallelization: 1,
maxMemory: 33554432,
}),
},
})
export default hashConfig
/**
* Inferring types for the list of hashers you have configured in your application.
*/
declare module "@adonisjs/core/types" {
export interface HashersList extends InferHashers<typeof hashConfig> {}
}