}
public static byte[] generateAndStorePrivateKey(final DataStore store, final SimplePushServerConfig config) {
byte[] keySalt = store.getPrivateKeySalt();
if (keySalt.length == 0) {
keySalt = new Random().randomBytes();
store.savePrivateKeySalt(keySalt);
}
return CryptoUtil.secretKey(config.password(), keySalt);
}