diff options
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...') |