2022-05-09 14:21:52 +02:00
|
|
|
<div class="tabbed-header">
|
|
|
|
<h1>{{ "encKeySettings" | i18n }}</h1>
|
|
|
|
</div>
|
|
|
|
<bit-callout type="warning">{{ "loggedOutWarning" | i18n }}</bit-callout>
|
2018-08-28 04:40:03 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="kdfMasterPassword">{{ "masterPass" | i18n }}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<input
|
|
|
|
id="kdfMasterPassword"
|
|
|
|
type="password"
|
|
|
|
name="MasterPasswordHash"
|
|
|
|
class="form-control"
|
|
|
|
[(ngModel)]="masterPassword"
|
|
|
|
required
|
|
|
|
appInputVerbatim
|
2018-08-28 04:40:03 +02:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2018-08-28 04:40:03 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="form-group mb-0">
|
|
|
|
<label for="kdf">{{ "kdfAlgorithm" | i18n }}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<a
|
|
|
|
class="ml-auto"
|
|
|
|
href="https://en.wikipedia.org/wiki/Key_derivation_function"
|
|
|
|
target="_blank"
|
2019-10-11 16:35:24 +02:00
|
|
|
rel="noopener"
|
|
|
|
appA11yTitle="{{ 'learnMore' | i18n }}"
|
|
|
|
>
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
2018-08-28 04:40:03 +02:00
|
|
|
</a>
|
|
|
|
<select id="kdf" name="Kdf" [(ngModel)]="kdf" class="form-control" required>
|
|
|
|
<option *ngFor="let o of kdfOptions" [ngValue]="o.value">{{ o.name }}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="form-group mb-0">
|
|
|
|
<label for="kdfIterations">{{ "kdfIterations" | i18n }}</label>
|
2021-03-02 17:21:34 +01:00
|
|
|
<a
|
|
|
|
class="ml-auto"
|
2022-01-31 20:11:27 +01:00
|
|
|
href="https://bitwarden.com/help/what-encryption-is-used/#pbkdf2"
|
2021-03-02 17:21:34 +01:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener"
|
2019-10-11 16:35:24 +02:00
|
|
|
appA11yTitle="{{ 'learnMore' | i18n }}"
|
|
|
|
>
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
2018-08-28 04:40:03 +02:00
|
|
|
</a>
|
2019-07-07 05:35:34 +02:00
|
|
|
<input
|
|
|
|
id="kdfIterations"
|
|
|
|
type="number"
|
|
|
|
min="5000"
|
|
|
|
max="2000000"
|
|
|
|
name="KdfIterations"
|
2019-02-21 22:50:37 +01:00
|
|
|
class="form-control"
|
|
|
|
[(ngModel)]="kdfIterations"
|
|
|
|
required
|
2018-08-28 04:40:03 +02:00
|
|
|
/>
|
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2018-08-28 04:40:03 +02:00
|
|
|
<div class="col-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="small form-text text-muted">
|
2022-03-24 11:15:48 +01:00
|
|
|
<p>{{ "kdfIterationsDesc" | i18n: (recommendedKdfIterations | number) }}</p>
|
2018-08-28 04:40:03 +02:00
|
|
|
<strong>{{ "warning" | i18n }}</strong
|
|
|
|
>: {{ "kdfIterationsWarning" | i18n: (50000 | number) }}
|
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2018-08-28 04:40:03 +02:00
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitButton buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
2018-08-28 04:40:03 +02:00
|
|
|
<span>{{ "changeKdf" | i18n }}</span>
|
|
|
|
</button>
|
|
|
|
</form>
|