comparison benchmark/bun-http-framework-benchmark/src/node/adonis/config/hash.js @ 185:dfdd66825396

Merged in keep alive changes and mrjunejune changes.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:22:30 -0800
parents a8976a008a9d
children
comparison
equal deleted inserted replaced
182:d6ab5921fedc 185:dfdd66825396
1 "use strict";
2 var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4 };
5 Object.defineProperty(exports, "__esModule", { value: true });
6 const Env_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Env"));
7 const config_1 = require("@adonisjs/core/build/config");
8 exports.default = (0, config_1.hashConfig)({
9 default: Env_1.default.get('HASH_DRIVER', 'scrypt'),
10 list: {
11 scrypt: {
12 driver: 'scrypt',
13 cost: 16384,
14 blockSize: 8,
15 parallelization: 1,
16 saltSize: 16,
17 keyLength: 64,
18 maxMemory: 32 * 1024 * 1024,
19 },
20 argon: {
21 driver: 'argon2',
22 variant: 'id',
23 iterations: 3,
24 memory: 4096,
25 parallelism: 1,
26 saltSize: 16,
27 },
28 bcrypt: {
29 driver: 'bcrypt',
30 rounds: 10,
31 },
32 },
33 });
34 //# sourceMappingURL=hash.js.map