private void AddKey(object sender, RoutedEventArgs e)
        {
            AddKeyWindow requestWindow = sender as AddKeyWindow;

            //encrypt input key value before insert in db
            requestWindow.Key.KeyValue = KeyEncryptor.Encrypt(requestWindow.Key.KeyValue);

            fileService.AddKey(requestWindow.Key);
            requestWindow.Close();
        }