Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
R

ravingcoder

@ravingcoder
About
Posts
20
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Bad Data
    R ravingcoder

    My experience with "Bad data" when trying to decrypt buffers using RSACryptoServiceProvider is incorrect block size. What else is possible?

    C# question

  • lame jobs
    R ravingcoder

    I don't see how you can do that if you're doing 80 hours week,6 days a week, and still have a life. But, if you are in the fortunate position that you actually get paid for overtime * or better * not expected to do much overtime, then please just shut up. There're many of us who working for SweatShop America and don't have much of a choice given the current lame economic condition right now. Although it's probably worse in Japan. Or even worse, in China or India, where wealthy business people get rich by having other working for them at cheap salary and long hours. And did you mention the "greed" word? Just up. just how many man-years of your life is spent paying up mortgage and retirement. Am I asking too much that I get paid for overtime? I dont need expensive SUV. I dont do liposuction and I don't think big houses is important. but for an average developer, just how much spare pocket money do you think you have minus all those things in life. Is that greed? Not wanting to spend a life just working for a piece of real estate or pay for your dying years? so, do me a favor next time you think you just know it: Just shut YOUR MOUTH wise guy. It's a good thing we still have democracy here.

    The Lounge question

  • lame jobs
    R ravingcoder

    yea, just that you like to stay in that cubicle 24 hours a day doesnt mean that others do - there're many other who just want to live a life. loosen up and get a life

    The Lounge question

  • lame jobs
    R ravingcoder

    good for you, that sort of put you in position to legalize that people should bike to work, like their job, do 80 hours weeks and no paid for overtime to make your boss rich.

    The Lounge question

  • lame jobs
    R ravingcoder

    stop buying from nike

    The Lounge question

  • lame jobs
    R ravingcoder

    Navin wrote: don't buy all this crap about people losing their jobs becuase they are moving to India yes smart boy

    The Lounge question

  • RSA public key?
    R ravingcoder

    hope someone is reading the thread. QUESTION 3: Is RSAParameters serializable? can I send it via tcp channel as byte array? Thanks.

    C# question data-structures security help learning

  • lame jobs
    R ravingcoder

    true enough, first, we don't need fashion - but we definitely need to do actually live a life

    The Lounge question

  • lame jobs
    R ravingcoder

    is it really on decline? there're sweat shops everywhere

    The Lounge question

  • Attention: All goat lovers
    R ravingcoder

    o shit...

    The Back Room csharp

  • US Patent 6,485,773
    R ravingcoder

    perhaps we dont need to eat out no more

    The Back Room question

  • lame jobs
    R ravingcoder

    Gary Kirkham wrote: Capitalism, even with its detractions, capitalism worked so far - until now. Corporates are exporting jobs and shit to China and India where corporates thrives by making people work like slaves for dirt cheap wages. people here in america are now working their butt off just to pay up the mortgages (interesting life) and compete with their cousins in developing world... capitalism: dont trust the government --> corporate slaves (when do we get to "elect" our CEOs and team leads) and actually get paid for overtime? communism: dont trust the corporates --> starving peasants (Hey, we never had true communism. most so called communist nations are really single-party dictatorships... certainly not a place like china)

    The Lounge question

  • lame jobs
    R ravingcoder

    i think i should be "human resources professional" --> at least you dont get to contribute =)

    The Lounge question

  • lame jobs
    R ravingcoder

    Chris Meech wrote: If you spin a Chinese person around, do they become dis-oriented? haha, that's a good one

    The Lounge question

  • lame jobs
    R ravingcoder

    why do we have to put up with long working hours and lame pay? is there another possibility besides capitalism (work to death) and communism (starve to death)? anything that makes sense to ordinary mortals? Bush free iraq, but who's going to free us white collar from being exploited by corporation... ** i think i'd better get some sleep **

    The Lounge question

  • RSA public key?
    R ravingcoder

    Hi, trying to encrypt something using RSAServiceProvide. I have two problems. 1. Bad data when decrypting. (1) In prototype, RSA_Server instance in decrypting side and encrypting side is the same instance. Of course, this will change later. RSAServiceProvider RSA_Server; (2) On encrypting side: RSA_Server = new RSACryptoServiceProvider(); encryptedbuffer = RSA_Server.Encrypt( databuffer, false); NOTE: At first I was suspecting that databuffer is than 5 bytes. But I get same problem after I trimmed databuffer down to one bytes. Anyway, here's quote from MSDN: "The length of the rgb parameter is greater than the maximum allowed length. If the fOAEP parameter is false and the encryption is performed on a computer with the high encryption pack installed, the maximum length of the rgb parameter is 16 bytes. If the high encryption pack is not installed, the maximum length of the rgb parameter is 5 bytes." (3) On decrypting side: plaintext = RSA_Server.Decrypt(encryptedbuffer, false); 2. How can I retrieve private key from RSAParameters instance? I need to "publish" my public key - not the entire RSAParameters. Here's code from MSDN: //Good. PublicKey and "Exponent" are both byte array. byte[] PublicKey = {214,46,220,83,160,73,40,39,201,155,19,202,3,11,191,178,56, 74,90,36,248,103,18,144,170,163,145,87,54,61,34,220,222, 207,137,149,173,14,92,120,206,222,158,28,40,24,30,16,175, 108,128,35,230,118,40,121,113,125,216,130,11,24,90,48,194, 240,105,44,76,34,57,249,228,125,80,38,9,136,29,117,207,139, 168,181,85,137,126,10,126,242,120,247,121,8,100,12,201,171, 38,226,193,180,190,117,177,87,143,242,213,11,44,180,113,93, 106,99,179,68,175,211,164,116,64,148,226,254,172,147}; byte[] Exponent = {1,0,1}; //Create a new instance of RSACryptoServiceProvider. RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(); //Create a new instance of RSAParameters. RSAParameters RSAKeyInfo = new RSAParameters(); //Set RSAKeyInfo to the public key values. RSAKeyInfo.Modulus = PublicKey; <--- OKAY, that's your public key. RSAKeyInfo.Exponent = Exponent; <--- what da? Is this your private key? //Import key parameters into RSA. RSA.ImportParameters(RSAKeyInfo); I need to pass encrypted data + RSA public key to decrypting side. Thanks.

    C# question data-structures security help learning

  • free(pMemory)
    R ravingcoder

    man, I don't believe that I can be so lame.

    C / C++ / MFC performance

  • free(pMemory)
    R ravingcoder

    Having trouble trying to deallocate memory - it didn't crashed, just stalled. And I have no idea why: Here's the code: int ** AllocMatrix(unsigned int numrow, unsigned int numcol, int initvalue=0) { int ** pMatrix=NULL; unsigned int i=0; pMatrix = malloc(numrow *4); if(pMatrix==NULL) { return NULL; } for(i=0; i

    C / C++ / MFC performance

  • memory allocation in C
    R ravingcoder

    loud and clear. doing it as we speak.

    C / C++ / MFC c++ performance question

  • memory allocation in C
    R ravingcoder

    how do you allocate memory in C? (not C++) "new" is not supported in C.

    C / C++ / MFC c++ performance question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups