Welcome to INTJ Forum

This is a community where INTJs can meet others with similar personalities and discuss a wide variety of both serious and casual topics. If you aren't an INTJ, you're welcome to join anyway if you would like to learn more about this personality type or participate in our discussions. Registration is free and will allow you to post messages, see hidden subforums, customize your account and use other features only available to our members.

HackerX

Core Member
  • Content count

    9,212
  • Joined

  • Last visited

About HackerX

Personality

  • MBTI
    INTP
  • Enneagram
    5
  • Global 5/SLOAN
    RCUAI
  • Astrology Sign
    Aries

Converted

  • Homepage
    http://www.ben-wise.com
  • Biography
    Blah
  • Interests
    Huggles and pink unicorns
  • Gender
    Male
  • Personal Text
    *the huggleator*

Recent Profile Visitors

49,034 profile views
  1. Sleep! ...... added to this post 43 minutes later: Also damn you for that subreddit
  2. Give me a sharpie and a knife and I'll do it for you for free.
  3. But who's going to see it?
  4. But can you get around my giant hug?
  5. Not declared. You just didn't have k++ and x++ in the appropriate places. There was other compile issues I had like the nested function. The issue with symbol substitution is just that, once you work out what the symbol is (what the boundary is), you can substitute anything that's easier to work with.
  6. Self invented cryptography is the sort of of stuff that gives professional programmers nightmares. If you're not serious about it then it's a bit of fun and you can learn some programming along the way. But on a scale of difficulty on how hard this is to crack from 0 to 10, this is about a 1 (the only real issue would be if the messages to crack are too short). Converting to wingdings makes no difference at all. Keep that in mind. Look up how modern stream ciphers and block ciphers work and how complicated they can be and why they are designed in those ways. And look at the changes I made and try and work out what my reasoning was for all of them. While I'm sure there's room for improvement (I had to stop myself), there's plenty of learnings in there as well.
  7. This code genuinely scares the shit out of me. How new to programming are you? ...... added to this post 5 minutes later: Your problems... at least the ones stopping the program from working is that you don't increment k in your cipher function, or x in your main loop. ...... added to this post 26 minutes later: So, this is my version of your code. I: Renamed things to make better sense Used a constant to define the max entry length Reduced the datatype from doubles to floats to save unnecessary size Converted the array into a 1D array for ease of use, and included the 'J' value, doubling 'I' per your code Moved the cipher function out of the main function Worked out the length of the input and used it rather than those massive loops. Stripped out all the unnecessary loops, and converted the while loops to for loops Killed the static return value and used malloc instead to allocate an array of only the size necessary Character arithmetic to read the key value, rather than that massive switch statement Padded the output so that each value is a consistent 4.3 - you could change that if you'd rather it be as per your original example (your code wouldn't print like your example mind you...) (ps. your message could only be 10000 chars long, but you were looping for 100000 in the result array?) #include <stdio.h> #include <stdlib.h> #include <string.h> const int MAX_LENGTH = 10000; const static float key[26] = { 110.2f,110.12f,110.102f,110.103f,110.13f, 111.2f,111.12f,111.102f,111.103f, 111.103f, 111.13f, 1010.2f,1010.12f,1010.102f,1010.103f,1010.13f, 1001.2f,1001.12f,1001.102f,1001.103f,1001.13f, 1000.2f,1000.12f,1000.102f,1000.103f,1000.13f }; float* cipher(char plaintext[], int len) { float* ret = (float*)malloc(len * sizeof(float)); for(int i = 0; i < len; i++) { if (plaintext[i] >= 'A' && plaintext[i] <= 'Z') { ret[i] = key[plaintext[i] - 'A']; } else if (plaintext[i] >= 'a' && plaintext[i] <= 'z') { ret[i] = key[plaintext[i] - 'a']; } else { ret[i] = 0.0f; } } return ret; } int main(int argc, char** argv) { int length = 0; char message[MAX_LENGTH]; float* result; puts("Enter message: "); fgets(message, MAX_LENGTH, stdin); length = strlen(message); result = cipher(message, length); for (int i = 0; i < (length - 1); i++) { printf("%08.3f", result[i]); // Cap the output to 4.3 } printf("\n"); free(result); // Not exactly necessary here, but good practice. return 0; } ...... added to this post 57 minutes later: The problem, if you were to take this cipher seriously, is that it's still just a basic substitution cipher. Sure the numbers would throw someone off for another 5 mins or so, but the decimal points clearly identify a pattern. It would take too long to work out whats going one based on the first character and the numbef of decimal points gives you a character count. Then it's just stats analysis and basic substitution to break it.
  8. C# Major Congratulations, you’re C# Major, and you’re actually SHARPER than a tack. C# Major is a key most musicians don’t even bother talking about, since it’s so damn strange to play. No instrument is immediately drawn to playing in C# Major, and the small amount of songs that do manage to get the distinction of being written in that key normally just get called Db Major instead because it’s “easier to think about.” So what is there going for C# Major? It’s the only key where every single note is sharp rather than having any flats, double sharps, etc. It is an easy fix to play when you’re trying to transpose out of something boring like C Major, as well. This key is even almost an inside joke to musicians, making it the key of a song just to screw with their band mates. Good fun for all. Well, then! You must be one oddball individual to get this key. You’re the type of person who would go out naked and dance through the sprinklers… in the middle of February. And there’s nothing wrong with that, individuality is a trait most people sorely lack. Just… tone it down a bit in front of the more normal of us, please? SONG EXAMPLE: Never Gonna Give You Up – Rick Astley (No, seriously!) INTERESTING TIDBITS: * Harp players especially hate this key because the pedals on a harp all must be put into the bottom position, causing almost no resonance through the strings. * Some (very few, though) piano teachers actually say that C# Major is easier to play than C Major and teach it at the start of curriculum. Take THAT, C Major!
  9. *cynicisms all over the floor and walls and everywhere*
  10. Well, that was my original point. How does one get one without the other?
  11. I think you're hiring me as a huggle prostitute.
  12. First ones free. Then we can negotiate a reciprocal arrangement.
  13. Oh, you edited. No, I don't think it would be. I wish such a service existed. I mean, technically prostitution would support it. It would be amazing if that was standard friendship stuff though. I would do this.
  14. Pfft , am not. Sometimes I even shower regularly.
  15. People suck. Yes. But hugs, it takes two to cuddle. How can we have cuddles without relationshit? The eternal question. P.s. I'd relation the shit out of you