wikipedia-game-solver/apps/api/src/config/hash.ts

25 lines
503 B
TypeScript
Raw Normal View History

2024-08-10 02:32:34 +02:00
import { defineConfig, drivers } from "@adonisjs/core/hash"
2024-08-09 23:51:41 +02:00
const hashConfig = defineConfig({
2024-08-10 02:32:34 +02:00
default: "scrypt",
2024-08-09 23:51:41 +02:00
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.
*/
2024-08-10 02:32:34 +02:00
declare module "@adonisjs/core/types" {
2024-08-09 23:51:41 +02:00
export interface HashersList extends InferHashers<typeof hashConfig> {}
}