Changed number of iterations for PBKDF2.

pull/2/head
Philipp Rieger 7 years ago
parent 74b7dcfaf7
commit ee2d76027d
  1. 2
      Trust/EtherClient/EtherKeystore.swift

@ -208,7 +208,7 @@ class EtherKeystore: Keystore {
func convertPrivateKeyToKeystoreFile(privateKey: String) -> Result<[String: Any], KeyStoreError> {
let password: [UInt8] = Array(privateKey.utf8)
let numberOfIterations = 4096
let numberOfIterations = 262144
do {
// derive key
let salt: [UInt8] = Array("tkmlidnonknkqgvapjrpdcductebsozn".utf8) // TODO: create random 32 bit salt

Loading…
Cancel
Save