참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
Parameters
Returns
string
The key derived from the password.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
function scryptSync(
_passwd,
_salt,
N,
r,
p,
dkLen): string
string
The key derived from the password.
// The password must be converted to bytes, and it is generally
// best practices to ensure the string has been normalized. Many
// formats explicitly indicate the normalization form to use.
password = 'hello';
passwordBytes = toUtf8Bytes(password, 'NFKC');
salt = id('some-salt');
// Compute the scrypt
scryptSync(passwordBytes, salt, 1024, 8, 1, 16);
