Results 1 to 2 of 2

Thread: [1.0/1.1] Encryption algorithms

  1. #1

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    [1.0/1.1] Encryption algorithms

    Hi. I looking for an algorithm that could be used for encryption purposes. The type of encryption I normally use is DES encryption. However, although I don't know much about it, using DES I normally encrypt messages sent via a network, and when the client / server receives the message, it is decrypted from bytes to a string.

    Now what I want is to decrypt a string to a string. Not from a string to bytes. I want to decrypt data that could then be written to something like a text file, and then read back and decrypted to readable data.

    Using the DES encryption, I tried taking a string, encrypting to bytes, and converting bytes to string and writing that to the file as a test. However, when i read the information from the file, convert back to bytes, and then decrypt I am not getting my original data. Sometimes it generating an error.

    Thus I'm looking for a suitable type of encryption technique that encrypts and decrypts from string to string. Are there any out there?

    I'm using the 1.1 framework.

    Thanks, Jennifer.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: [1.0/1.1] Encryption algorithms

    Don't convert it to a string before writing it to the file. You can write the bytes to the file and it simply becomes a binary file instead of a plain text file.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width