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.

Spooky hex output for byte input

See original GitHub issue

⚠️IMPORTANT⚠️ if you do not fill this out, we will automatically delete your issue. We will not help anyone that cannot fill out this template.

Describe the bug Ciphey outputs random hex digit pairs when run on practically any ciphertext when set to bytes mode, and when the output is not redirected (i.e. into less)

Plaintext ⚠️IMPORTANT⚠️ The below code is non-negotiable for “Ciphey didn’t decrypt…” problems. If you do not tell us your plaintext, we will not help you.

hello, world

or any other string

Version ⚠️IMPORTANT⚠️ We need this information because different environments will induce different bugs in Ciphey

  • OS/Distro: Debian
  • Python version: Python 3.8.5
  • Ciphey versions: master (775fabe)
  • Did you use Docker? Nope

Verbose Output ⚠️IMPORTANT⚠️ Verbose output will tell us why it’s not working the way we expected it to be. https://pastebin.com/Gg41gpgU

To Reproduce Steps to reproduce the behavior:

$ ciphey -t "hello, world" -b -C regex -p regex.regex=random_unmatchable_text
6c
6d
6c
6e
6c
6b
6c
6f
6c
73
6c
71
6c
72
6c
24
6c
79
72
73
72
70
72
75
72
71
72
6d
72
6f
72
6c
72
3a
72
67
....

Expected behavior No spooky hex

Any other information? Nope

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Sep 8, 2020

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.64. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
SkeletalDemisecommented, Oct 18, 2020

This is fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Efficient way to convert a String (representing HEX) to a byte ...
I'm working on a project that involves receiving a byte array over wireless, the Android app reads this as a String over a...
Read more >
C#How can I take the hex value from a user and plug it into a ...
Basically I want the user to input either 11223344 or 0x11, 0x22, 0x33, 0x44 I want something like this: String h= Console.ReadLine(); Byte[] ......
Read more >
Converting Between Byte Arrays and Hexadecimal Strings in ...
In this tutorial, we'll take a look at different ways to convert a byte array to a hexadecimal String, and vice versa.
Read more >
Helpful Bash Scripts For Working with Byte Arrays and Hex ...
Helpful Bash scripts that provide hex to decimal to hex conversions, character count and word counts to make working with hex byte arrays ......
Read more >
Java - How to convert byte arrays to Hex - Mkyong.com
For example, a character a , binary is 0110 0001 , after bitwise AND a 0xF0 , it becomes 0110 0000 . 0110...
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