Crypter cuts strings
See original GitHub issueTest case
var connection = "Server=azuresqlserver.database.windows.net;Database=azuredatabase;Authentication=Active Directory MSI;User Id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;"
if(connection != Crypter.DecryptString(Crypter.EncryptString(connection))) {
throw new Exception();
};
Cost me two days to figure out why previewing reports does not work - caching serializes and deserializes connection strings and encryption ruins them.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
CryptoStream.Read bytes truncated #61398 - dotnet/runtime
Description After upgrading my project from .NET 5 to .NET 6 my unit tests failed because CryptoStream.Read is truncating bytes.
Read more >Encryption of long strings - Security
The encrypt method works fine for short strings but for longer ones it fails. I've tried to cut it down to its essentials,...
Read more >How to compress/hash/encrypt a string of characters into a ...
The most straightforward way to do this is to store the original string in a dictionary, and return a hash or index of...
Read more >Cracking Pushdo and How to Bust Through Most Crypters
These tools typically cut up the input file into pieces, encrypt them, ... A cursory glance at the strings shows numerous avenues of...
Read more >Encrypt/Decrypt String Kotlin
AES Encryption / Decryption using base64 key, salt and iv (Initialization Vector). object AESEncyption { const val secretKey ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like the problem is that the encrypted stream is not fully read, we will fix it in FR crypter in the next update.
https://github.com/dotnet/runtime/issues/61398 https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/partial-byte-reads-in-streams