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
  1. Home
  2. General Programming
  3. C#
  4. UnixCrypt algorithm

UnixCrypt algorithm

Scheduled Pinned Locked Moved C#
algorithmssecurityquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sekannak
    wrote on last edited by
    #1

    Hi, I am using UnixCrypt class file for encryption in my application. I have confusion to passing the parameters to the Crypt method. There are Two methods are available, UnixCrypt.Crypt("Text To be Encrypt"); UnixCrypt.Crypt(Salt character ,TextTo be encrypt); My PAssword is : encrypt8 Note : can u any one plz clearly tell me the parameter which i have to pass to the proper Crypt method. What is meant by the Salt characters. Plz let me clear my dowts. regards,

    kannak

    I S 2 Replies Last reply
    0
    • S sekannak

      Hi, I am using UnixCrypt class file for encryption in my application. I have confusion to passing the parameters to the Crypt method. There are Two methods are available, UnixCrypt.Crypt("Text To be Encrypt"); UnixCrypt.Crypt(Salt character ,TextTo be encrypt); My PAssword is : encrypt8 Note : can u any one plz clearly tell me the parameter which i have to pass to the proper Crypt method. What is meant by the Salt characters. Plz let me clear my dowts. regards,

      kannak

      I Offline
      I Offline
      Ian Shlasko
      wrote on last edited by
      #2

      http://en.wikipedia.org/wiki/Salt_%28cryptography%29[^] Salt is basically a second password, but one generally used for an entire password database. In other words, a server would have a single salt key, used for all the passwords. It modifies the encryption algorithm so if the database is stolen without the salt key, it's exponentially more difficult to crack.

      Proud to have finally moved to the A-Ark. Which one are you in?
      Author of the Guardians Saga (Sci-Fi/Fantasy novels)

      1 Reply Last reply
      0
      • S sekannak

        Hi, I am using UnixCrypt class file for encryption in my application. I have confusion to passing the parameters to the Crypt method. There are Two methods are available, UnixCrypt.Crypt("Text To be Encrypt"); UnixCrypt.Crypt(Salt character ,TextTo be encrypt); My PAssword is : encrypt8 Note : can u any one plz clearly tell me the parameter which i have to pass to the proper Crypt method. What is meant by the Salt characters. Plz let me clear my dowts. regards,

        kannak

        S Offline
        S Offline
        Sandesh M Patil
        wrote on last edited by
        #3

        Both are static members. If you use the first method, it will randomly generate the salt characters for you and then call the second method. Salt, in this case, are two letters that are used to provide some extra randomness for the encryption, and allow you to repeat any previous encryption (if you also have the text that was encrypted). Another thing users should know is that the text to encrypt should not be more then 8 characters long. If your text is longer than 8 characters, only the first 8 are used and the rest is ignored.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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