diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 17:53:38 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 8d468a16fd33ec2660c3c59b3f7def53eb0cc4a1 (patch) | |
tree | 078708f8316ed6294088b159f79e861664fca953 /server/helpers/peertube-crypto.ts | |
parent | 39445ead45aaaea801ec09991b8dd2464f722e47 (diff) | |
download | PeerTube-8d468a16fd33ec2660c3c59b3f7def53eb0cc4a1.tar.gz PeerTube-8d468a16fd33ec2660c3c59b3f7def53eb0cc4a1.tar.zst PeerTube-8d468a16fd33ec2660c3c59b3f7def53eb0cc4a1.zip |
Cleanup helpers
Diffstat (limited to 'server/helpers/peertube-crypto.ts')
-rw-r--r-- | server/helpers/peertube-crypto.ts | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index c61abfa8e..74e4cc703 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts | |||
@@ -1,17 +1,8 @@ | |||
1 | import { | 1 | import { BCRYPT_SALT_SIZE, PRIVATE_RSA_KEY_SIZE } from '../initializers' |
2 | PRIVATE_RSA_KEY_SIZE, | ||
3 | BCRYPT_SALT_SIZE | ||
4 | } from '../initializers' | ||
5 | import { | ||
6 | bcryptComparePromise, | ||
7 | bcryptGenSaltPromise, | ||
8 | bcryptHashPromise, | ||
9 | createPrivateKey, | ||
10 | getPublicKey | ||
11 | } from './core-utils' | ||
12 | import { logger } from './logger' | ||
13 | import { AccountInstance } from '../models/account/account-interface' | 2 | import { AccountInstance } from '../models/account/account-interface' |
3 | import { bcryptComparePromise, bcryptGenSaltPromise, bcryptHashPromise, createPrivateKey, getPublicKey } from './core-utils' | ||
14 | import { jsig } from './custom-jsonld-signature' | 4 | import { jsig } from './custom-jsonld-signature' |
5 | import { logger } from './logger' | ||
15 | 6 | ||
16 | async function createPrivateAndPublicKeys () { | 7 | async function createPrivateAndPublicKeys () { |
17 | logger.info('Generating a RSA key...') | 8 | logger.info('Generating a RSA key...') |