derivePrivateKey2

expect fun derivePrivateKey2(password: String, salt: String): String

Generates a new private ECC key from a password using pbkdf2. This version of the derive function has a rounds count increased to 200k. This makes using this function a safer choice, but it makes the received key different than in the original version.

Return

generated ECC key in WIF format

Parameters

password

the password used to generate the new key

salt

random string (additional input for the hashing function)

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual fun derivePrivateKey2(password: String, salt: String): String

Generates a new private ECC key from a password using pbkdf2. This version of the derive function has a rounds count increased to 200k. This makes using this function a safer choice, but it makes the received key different than in the original version.

Return

generated ECC key in WIF format

Parameters

password

the password used to generate the new key

salt

random string (additional input for the hashing function)

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual external fun derivePrivateKey2(password: String, salt: String): String

Generates a new private ECC key from a password using pbkdf2. This version of the derive function has a rounds count increased to 200k. This makes using this function a safer choice, but it makes the received key different than in the original version.

Return

generated ECC key in WIF format

Parameters

password

the password used to generate the new key

salt

random string (additional input for the hashing function)

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception