Keystore is a JSON-encoded file that contains a single (randomly generated) private key, encrypted by a passphrase for extra security.
Create a random wallet.
Encrypt the wallet using password, this will return a JSON-encoded string. We can store it in a file.
We can also recover the wallet from the keystore by decrypting an encrypted JSON wallet.