pwhash

actual fun pwhash(outputLength: Int, password: String, salt: UByteArray, opsLimit: ULong, memLimit: Int, algorithm: Int): UByteArray

The crypto_pwhash() function derives an outlen bytes long key from a password passwd whose length is passwdlen and a salt salt whose fixed length is crypto_pwhash_SALTBYTES bytes. passwdlen should be at least crypto_pwhash_ PASSWD_MIN and crypto_pwhash_PASSWD_MAX. outlen should be at least crypto_pwhash_BYTES_MIN = 16 (128 bits) and at most crypto_pwhash_BYTES_MAX.

See https://libsodiumJna.gitbook.io/doc/password_hashing/default_phf for more details

expect fun pwhash(outputLength: Int, password: String, salt: UByteArray, opsLimit: ULong, memLimit: Int, algorithm: Int): UByteArray

The crypto_pwhash() function derives an outlen bytes long key from a password passwd whose length is passwdlen and a salt salt whose fixed length is crypto_pwhash_SALTBYTES bytes. passwdlen should be at least crypto_pwhash_ PASSWD_MIN and crypto_pwhash_PASSWD_MAX. outlen should be at least crypto_pwhash_BYTES_MIN = 16 (128 bits) and at most crypto_pwhash_BYTES_MAX.

See https://libsodium.gitbook.io/doc/password_hashing/default_phf for more details

actual fun pwhash(outputLength: Int, password: String, salt: UByteArray, opsLimit: ULong, memLimit: Int, algorithm: Int): UByteArray

The crypto_pwhash() function derives an outlen bytes long key from a password passwd whose length is passwdlen and a salt salt whose fixed length is crypto_pwhash_SALTBYTES bytes. passwdlen should be at least crypto_pwhash_ PASSWD_MIN and crypto_pwhash_PASSWD_MAX. outlen should be at least crypto_pwhash_BYTES_MIN = 16 (128 bits) and at most crypto_pwhash_BYTES_MAX.

See https://libsodiumJna.gitbook.io/doc/password_hashing/default_phf for more details

actual fun pwhash(outputLength: Int, password: String, salt: UByteArray, opsLimit: ULong, memLimit: Int, algorithm: Int): UByteArray

The crypto_pwhash() function derives an outlen bytes long key from a password passwd whose length is passwdlen and a salt salt whose fixed length is crypto_pwhash_SALTBYTES bytes. passwdlen should be at least crypto_pwhash_ PASSWD_MIN and crypto_pwhash_PASSWD_MAX. outlen should be at least crypto_pwhash_BYTES_MIN = 16 (128 bits) and at most crypto_pwhash_BYTES_MAX.

See https://libsodium.gitbook.io/doc/password_hashing/default_phf for more details