diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-25 09:47:49 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-25 09:47:49 +0100 |
commit | f83e27958109b829ba6326efda0679cc032003e5 (patch) | |
tree | 822a588bc0d3466712aad07cef17ad80906060a8 /server/helpers/peertube-crypto.js | |
parent | b769007f733769d3afe2d29a3eb23e2e7693f301 (diff) | |
download | PeerTube-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.js | 10 |
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') | |||
9 | const constants = require('../initializers/constants') | 9 | const constants = require('../initializers/constants') |
10 | const logger = require('./logger') | 10 | const logger = require('./logger') |
11 | 11 | ||
12 | const algorithm = 'aes-256-ctr' | ||
13 | |||
14 | const peertubeCrypto = { | 12 | const peertubeCrypto = { |
15 | checkSignature, | 13 | checkSignature, |
16 | comparePassword, | 14 | comparePassword, |
@@ -113,11 +111,3 @@ function createCerts (callback) { | |||
113 | }) | 111 | }) |
114 | }) | 112 | }) |
115 | } | 113 | } |
116 | |||
117 | function generatePassword (callback) { | ||
118 | crypto.randomBytes(32, function (err, buf) { | ||
119 | if (err) return callback(err) | ||
120 | |||
121 | callback(null, buf.toString('utf8')) | ||
122 | }) | ||
123 | } | ||