justaeris
justaeris
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
alright due to a change in design I did calculate the HMAC over the plain text data and thus making me able to append it before the encryprted payload, thanks to some stream manipulations inpired by @Kouhai's idea, I managed to sucessfully solve the problem. Thank you @AntonC and Kouhai for helping me :)
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
not sure to undertsna dhwta you jsut said
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
would need some trickery since it's calculated from the ciphered data, so when it's done calculating, all the ciphered data is already written to the stream
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
For now it's 😴 time
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
Alright thanks for your suggestions the first one might be very smart and could work, I'll try that tomorrow
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
here is the code but better
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
$code
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
but again that would require wizardry
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
I guess the best workaround I could think of, is, when ecnrypting, to put the HMAC before the X bytes of data
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
Forgot to mention that since those streams can be linked to rather huge files, I try to avoid as much as possible .Seek
17 replies
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
here is the code in his current state:
17 replies
CC#
Created by MrPlayz24 on 3/22/2023 in #help
❔ why isnt this code not highlighting as shown in yt
no it doesn't but if this means you don't have the C# workload, your code won't probably run
106 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
you can close the thread if you can once you saw this
50 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
thanks again for your help and time
50 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
kinda cheating but it works just fine
50 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
...
var handle = true;
ph.HttpReceiveProgress += (_, args) =>
{
if (handle) onDataReceived?.Invoke(args);
};

using var client = new HttpClient(ph);
await client.GetAsync(url, cancellationToken);
handle = false;
onDataReceived?.Invoke(new HttpProgressEventArgs(-1, null, 0, 0));
...
...
var handle = true;
ph.HttpReceiveProgress += (_, args) =>
{
if (handle) onDataReceived?.Invoke(args);
};

using var client = new HttpClient(ph);
await client.GetAsync(url, cancellationToken);
handle = false;
onDataReceived?.Invoke(new HttpProgressEventArgs(-1, null, 0, 0));
...
...
Dispatcher.Invoke(() =>
{
if (args.ProgressPercentage == -1)
OverallProgressBar.IsIndeterminate = true;
else
{
OverallProgressBar.IsIndeterminate = false;
OverallProgressBar.Value = args.ProgressPercentage;
}
parent.TaskbarItemInfo.ProgressValue = args.ProgressPercentage / 100f;
});
...
...
Dispatcher.Invoke(() =>
{
if (args.ProgressPercentage == -1)
OverallProgressBar.IsIndeterminate = true;
else
{
OverallProgressBar.IsIndeterminate = false;
OverallProgressBar.Value = args.ProgressPercentage;
}
parent.TaskbarItemInfo.ProgressValue = args.ProgressPercentage / 100f;
});
...
50 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
bro I'm so smart
50 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
hold my beer
50 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
or wait
50 replies