encrypt static method
Implementation
static Future<KeyFile> encrypt(KeyStore store, String password) async {
var timestamp = ((DateTime.now()).millisecondsSinceEpoch / 1000).round();
var stored = KeyFile(
baseAddress: await store.getKeyPair().address,
timestamp: timestamp,
version: 1,
crypto: _Crypto(
argon2Params: _Argon2Params(salt: Uint8List(0)),
cipherData: Uint8List(0),
cipherName: 'aes-256-gcm',
kdf: 'argon2.IDKey',
nonce: Uint8List(0)));
return stored._encryptEntropy(store, password);
}