const constants = require('../initializers/constants')
const logger = require('./logger')
-const algorithm = 'aes-256-ctr'
-
const peertubeCrypto = {
checkSignature,
comparePassword,
})
})
}
-
-function generatePassword (callback) {
- crypto.randomBytes(32, function (err, buf) {
- if (err) return callback(err)
-
- callback(null, buf.toString('utf8'))
- })
-}
'use strict'
const config = require('config')
-const maxBy = require('lodash/maxBy')
const path = require('path')
// ---------------------------------------------------------------------------
-/*
- This is just an example.
-*/
+// /*
+// This is just an example.
+// */
-const db = require('../database')
+// const db = require('../database')
-// options contains the transaction
-exports.up = function (options, callback) {
- // db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback)
-}
+// // options contains the transaction
+// exports.up = function (options, callback) {
+// db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback)
+// }
-exports.down = function (options, callback) {
- throw new Error('Not implemented.')
-}
+// exports.down = function (options, callback) {
+// throw new Error('Not implemented.')
+// }