question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crypter cuts strings

See original GitHub issue

Test 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Detravcommented, Nov 12, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found