justaeris
justaeris
CC#
Created by justaeris on 3/22/2023 in #help
✅ Stream assistance needed
Alright I really need I'm completely lost. I have a file containing the following: 1 versioning byte used for retro-compatibility purposes, a 16 bytes long IV, X bytes of data and 64 bytes-long HMAC, everything in this exact order. Encryption is not the problem, decryption is. Since I used streams for better performances and less memory allocations than arrays, I read things in order, first the versioning byte to determine which method to use, then the IV to calculate the key and then problems are here. Since the HMAC is at the end, I need to decrypt the X following bytes = the rest of bytes - the 64 last. And I just can't. I tried using .SetLength on a new MemoryStream, also tried .Capacity, nothing is working. I am thus requesting your help.
17 replies
CC#
Created by justaeris on 1/26/2023 in #help
✅ Unsubscribing from all events
Okay, to make it short, I need to unsubscribe from an anonymous event and the way I thought would work would just to unsub from all by using .GetInvocationList() but it appears it just doesn't exist, can anyone give a tip on how to do it ?
50 replies
CC#
Created by justaeris on 8/30/2022 in #help
Can't install EF core tools [Answered]
76 replies
CC#
Created by justaeris on 8/19/2022 in #help
Check for required admin rights to edit a file [Answered]
Heyo! In short I use SDelete to shred files and I want to know before running the program if any file requires admin rights to be deleted. Is that possible ?
91 replies
CC#
Created by justaeris on 8/19/2022 in #help
EF without ASP.NET? [Answered]
Heyo, wanted to know if it's possible to use EF without the whole ASP.NET thingy, bascially using EF in a class library or in a WPF app. And if yes, does anyone have any ideas of a cool not too big project which could use a database?
12 replies