Results 1 to 6 of 6

Thread: Encrypt password in C#.Net

  1. #1
    Moderator
    Join Date
    Oct 2005
    Answers
    305

    Encrypt password in C#.Net

    How to encrypt password in C#.Net?

    NOTE : [This question was asked by sbehera02]


  2. #2
    Expert Member
    Join Date
    Dec 2006
    Answers
    204

    Re: Encrypt password in C#.Net

    There is a function for this purpose:
    encrypt(text,password)
    This will encrypts the text with the password and returns a string.
    There is a decrypt function too:
    decyrpt(text,password)
    This does the reverse operation.


  3. #3
    Moderator
    Join Date
    Oct 2005
    Answers
    305

    Re: Encrypt password in C#.Net

    Thank you for your quick answer Barbie


  4. #4
    Contributing Member
    Join Date
    Jul 2006
    Answers
    56

    Re: Encrypt password in C#.Net

    Barbie it was a good explanation given with syntax. I also tried this new command and got the result.


  5. #5
    Junior Member
    Join Date
    Sep 2008
    Answers
    1

    Re: Encrypt password in C#.Net

    How to encrypt password in C#.Net?


  6. #6
    Junior Member
    Join Date
    May 2008
    Answers
    1

    Re: Encrypt password in C#.Net

    In the System.Security.Cryptography namespace the PasswordDeriveBytes class will let you derive a cryptographic key from a password string. You can
    then use this key in one of the encryption classes such as Rijndael.

    When encrypting/decrypting you can either act on an array of bytes in
    memory, or you can use CryptoStream to do stream-based IO but with
    cryptography applied.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact