참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
function encryptKeystoreJsonSync(
   account, 
   password, 
   options?): string
Return the JSON Keystore Wallet for account encrypted with password. The options can be used to tune the password-based key derivation function parameters, explicitly set the random values used. Any provided ProgressCallback is ignored.

Parameters

ParameterTypeDescription
accountKeystoreAccountThe account to encrypt.
passwordstring | Uint8ArrayThe password to encrypt the JSON data.
options?EncryptOptionsThe options to use when encrypting the JSON data.

Returns

string The encrypted JSON data.

Source

wallet/json-keystore.ts:463