Click here to Skip to main content
14,336,087 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Thought of the Day Pin
DRHuff5-May-19 7:32
memberDRHuff5-May-19 7:32 
GeneralFriday Afternoon Puzzle Pin
harold aptroot3-May-19 0:47
memberharold aptroot3-May-19 0:47 
GeneralRe: Friday Afternoon Puzzle Pin
Rob Philpott3-May-19 1:10
memberRob Philpott3-May-19 1:10 
GeneralRe: Friday Afternoon Puzzle Pin
OriginalGriff3-May-19 1:17
protectorOriginalGriff3-May-19 1:17 
GeneralRe: Friday Afternoon Puzzle Pin
Rob Philpott3-May-19 1:23
memberRob Philpott3-May-19 1:23 
GeneralRe: Friday Afternoon Puzzle Pin
OriginalGriff3-May-19 1:33
protectorOriginalGriff3-May-19 1:33 
GeneralRe: Friday Afternoon Puzzle Pin
harold aptroot3-May-19 1:19
memberharold aptroot3-May-19 1:19 
GeneralRe: Friday Afternoon Puzzle Pin
Rob Philpott3-May-19 1:41
memberRob Philpott3-May-19 1:41 
Run out of time! Think I'm close though, code below suggests what I was up to....
private static void Main(string[] args)
{
    //byte[] seek =  { 0xc5, 0x83, 0xc2, 0x8f, 0x2a, 0xaf, 0x42, 0x25 };
    byte[] seek = { 0x25, 0x42, 0xaf, 0x2a, 0x8f, 0xc2, 0x83, 0xc5 };

    byte[] message = new byte[8];

    for (int index = 0; index < 8; index++)
    {
        for (int c = 32; c < 127; c++)
        {
            message[index] = (byte)c;
            var test = BitConverter.GetBytes((encode(message)));

            if (test[7-index] == seek[7- index])
            {
                Console.WriteLine(Encoding.ASCII.GetString(message));
                Console.ReadLine();
            }
        }
    }

}

static ulong encode(string msg)
{
    ulong msg_bits = BitConverter.ToUInt64(Encoding.ASCII.GetBytes(msg), 0);
    return msg_bits ^ (msg_bits >> 3) ^ (msg_bits >> 13) ^ (msg_bits >> 47);
}

static ulong encode(byte[] msg)
{
    ulong msg_bits = BitConverter.ToUInt64(msg, 0);
    return msg_bits ^ (msg_bits >> 3) ^ (msg_bits >> 13) ^ (msg_bits >> 47);
}
Regards,
Rob Philpott.

GeneralRe: Friday Afternoon Puzzle Pin
harold aptroot3-May-19 1:55
memberharold aptroot3-May-19 1:55 
GeneralRe: Friday Afternoon Puzzle Pin
Michael Martin3-May-19 1:59
professionalMichael Martin3-May-19 1:59 
GeneralRe: Friday Afternoon Puzzle Pin
PIEBALDconsult3-May-19 3:07
protectorPIEBALDconsult3-May-19 3:07 
GeneralRe: Friday Afternoon Puzzle Pin
Richard Deeming3-May-19 3:32
mveRichard Deeming3-May-19 3:32 
GeneralRe: Friday Afternoon Puzzle Pin
OriginalGriff3-May-19 4:11
protectorOriginalGriff3-May-19 4:11 
GeneralRe: Friday Afternoon Puzzle [spoilers] Pin
harold aptroot3-May-19 7:22
memberharold aptroot3-May-19 7:22 
GeneralI win! Pin
CPallini4-May-19 11:29
mveCPallini4-May-19 11:29 
GeneralThe Misinformation Age Pin
Randor 2-May-19 23:05
professional Randor 2-May-19 23:05 
GeneralRe: The Misinformation Age Pin
Christian Graus2-May-19 23:10
protectorChristian Graus2-May-19 23:10 
QuestionRe: The Misinformation Age Pin
Randor 2-May-19 23:19
professional Randor 2-May-19 23:19 
AnswerRe: The Misinformation Age Pin
Christian Graus2-May-19 23:21
protectorChristian Graus2-May-19 23:21 
GeneralRe: The Misinformation Age Pin
Randor 2-May-19 23:30
professional Randor 2-May-19 23:30 
GeneralRe: The Misinformation Age Pin
Christian Graus2-May-19 23:33
protectorChristian Graus2-May-19 23:33 
GeneralRe: The Misinformation Age Pin
RJOberg3-May-19 2:53
professionalRJOberg3-May-19 2:53 
GeneralRe: The Misinformation Age Pin
den2k882-May-19 23:31
professionalden2k882-May-19 23:31 
GeneralRe: The Misinformation Age Pin
Christian Graus2-May-19 23:32
protectorChristian Graus2-May-19 23:32 
GeneralRe: The Misinformation Age Pin
den2k882-May-19 23:37
professionalden2k882-May-19 23:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.