aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/peertube-crypto.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-25 09:47:49 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-25 09:47:49 +0100
commitf83e27958109b829ba6326efda0679cc032003e5 (patch)
tree822a588bc0d3466712aad07cef17ad80906060a8 /server/helpers/peertube-crypto.js
parentb769007f733769d3afe2d29a3eb23e2e7693f301 (diff)
downloadPeerTube-f83e27958109b829ba6326efda0679cc032003e5.tar.gz
PeerTube-f83e27958109b829ba6326efda0679cc032003e5.tar.zst
PeerTube-f83e27958109b829ba6326efda0679cc032003e5.zip
Fix standard lint
Diffstat (limited to 'server/helpers/peertube-crypto.js')
-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}