aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/peertube-crypto.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/server/helpers/peertube-crypto.js b/server/helpers/peertube-crypto.js
index 2e07df00e..302ddca58 100644
--- a/server/helpers/peertube-crypto.js
+++ b/server/helpers/peertube-crypto.js
@@ -9,8 +9,6 @@ const ursa = require('ursa')
9const constants = require('../initializers/constants') 9const constants = require('../initializers/constants')
10const logger = require('./logger') 10const logger = require('./logger')
11 11
12const algorithm = 'aes-256-ctr'
13
14const peertubeCrypto = { 12const peertubeCrypto = {
15 checkSignature, 13 checkSignature,
16 comparePassword, 14 comparePassword,
@@ -113,11 +111,3 @@ function createCerts (callback) {
113 }) 111 })
114 }) 112 })
115} 113}
116
117function generatePassword (callback) {
118 crypto.randomBytes(32, function (err, buf) {
119 if (err) return callback(err)
120
121 callback(null, buf.toString('utf8'))
122 })
123}