25 questions
1
vote
1
answer
99
views
How to display non-English text that the user inputs in the console correctly?
The console doesn't display the non-English text input into it correctly, when it's later outputting them. However the text displays correctly when the user inputs them.
Some of the non-English ...
0
votes
0
answers
220
views
Cannot find what is the encoding of the signature obtained by signing with private key
I create a pair of ed25519 keys and then used the cryptography Python library to sign an auth code with the private key:
private_key = serialization.load_ssh_private_key(open('ed25519', 'rb').read(), ...
0
votes
1
answer
1k
views
Get Out of a TextDecoderStream() from NodeJS
When I send an error message from my express nodejs app using res.status(400).send(err.stack);, I cannot seem to get out of the decoder stream I setup on the receiving end.
Here is my code in the ...
4
votes
3
answers
1k
views
Read NUL-terminated String from ByteBuffer
How can I read NUL-terminated UTF-8 string from Java ByteBuffer starting at ByteBuffer#position()?
ByteBuffer b = /* 61 62 63 64 00 31 32 34 00 (hex) */;
String s0 = /* read first string */;
String s1 ...
0
votes
0
answers
78
views
Do I have to roll my own escape code to display user input in HTML/Javascript?
This must've been asked before, but I couldn't find it.
I want to allow my users to enter text into an HTML form, and later to display that text in the webpage, exactly as it was written, avoiding:
...
1
vote
0
answers
107
views
Decoding data from WIN10 ssh server (response of paramiko recv()) [duplicate]
I am using paramiko to connect to a win10 server (client is Linux) and for most parts communication is OK.
But when i read the response to a command (via recv()) , i see some strange data.
Example: ...
1
vote
1
answer
460
views
A file named Butterfly7198.txt was found and It's boggling me
I happened to come across a file while changing images for a Toontown Rewritten's Context Pack I've been working on and I stumbled across this file marked
Butterfly7198.txt
and upon clicking on it, ...
-3
votes
1
answer
221
views
I need to know how Strong is my Cipher Algorithm
I've created a Cipher Algorithm (in Python) which will Generate a Random String of 255 Characters - which is my Key for Encryption.
Example Encryption:
originalString = ‘A Quick Brown fox Jumps over ...
2
votes
0
answers
438
views
Problems with TextDecoder decoding Uint8Array
Having problems with TextDecoder decoding Uint8Array. (background info)
var staring = "hello";
var array = new Uint8Array(2);
array[0]=255;
array[1]=0;
var binary=(new TextDecoder("utf-8")).decode(...
0
votes
2
answers
47
views
Encoding issue. Convert to lisible string
I have a little issue in my project.
I fetch a JSON with strings like this "Paris 11'e8me", I want this to be displayed as "Paris 11ème".
My guess is that the string is encoded in sthg like ...
0
votes
1
answer
12k
views
base64 decoding to UTF-8, one character not displaying correctly
I am trying to decode a string from base64 to UTF-8 for an assignment.
Not having programmed Java for a while I am probably not using the most efficient method, however I managed to implement a ...
2
votes
1
answer
2k
views
How can I obtain timing values from the output of nvprof or of NVidia Visual Profiler?
I'm using nvprof to profile something (which includes both CPU work and GPU work, i.e. I use nvprof markers etc.), and I get binary files which nvprof produces. I can import these into NVVP (NVidia ...
1
vote
2
answers
497
views
Text Decoding Problem
So given this input string:
=?ISO-8859-1?Q?TEST=2C_This_Is_A_Test_of_Some_Encoding=AE?=
And this function:
private string DecodeSubject(string input)
{
StringBuilder sb = new ...