Hiding a server URI in an encoded file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • USBZ0r
    New Member
    • Mar 2009
    • 20

    Hiding a server URI in an encoded file?

    Hi guys,

    I was wondering if its possible to encode a server uri or something inside a file, then decode it when its needed before httpwebrequest. The reason for this is my applciation sends post data using ssl to a server then the server returns a *Sensitive* URI back to my application to send the secure data to but the URI and data is veri easily viewable in memory once the response is sent back. im not sure if using GC.Collect after httpwebrequest would clear it. but id like to try encrypting the server URI as it would come in use anyway.

    i read about Cryptography namespace, but im not sure if this would work for what i need.

    Thanks!
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Seems reasonable to me. I encrypt/decrypt all the senstive settings my applications before sending to the registry.

    Comment

    • USBZ0r
      New Member
      • Mar 2009
      • 20

      #3
      Thanks for the reply. i tried TripleDESCrypto ServiceProvider last night, the problem was it was encrypting, but when i decrypted it the string come iout in strange ALT codes etc. the string is pretty big, does DES have an encryption string limit?

      Comment

      • USBZ0r
        New Member
        • Mar 2009
        • 20

        #4
        im still having an issue with tripleDES, it decrypts and encrypts fine in C#, but the string isnt always the same when the php server trys to decode it, its all messed up.

        Hope someone has faced this issue and can help
        Thanks

        Comment

        Working...