메인 콘텐츠로 건너뛰기
참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
Provides a synchronous variant of scrypt. This will completely lock up and freeze the UI in a browser and will prevent any event loop from progressing. For this reason, it is preferred to use the async variant.

Parameters

ParameterTypeDescription
_passwdBytesLikeThe password to use.
_saltBytesLikeThe salt to use.
NnumberThe CPU/memory cost parameter.
rnumberThe block size parameter.
pnumberThe parallelization parameter.
dkLennumberThe length of the key to generate.

Returns

string The key derived from the password.

Example

Source

crypto/scrypt.ts:153