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. retrival of password problem

retrival of password problem

Scheduled Pinned Locked Moved C#
regexdatabasesql-serversysadminhelp
4 Posts 2 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.
  • T Offline
    T Offline
    tejesh123
    wrote on last edited by
    #1

    Hi all I am encrypting my password using md5 algo to store in sql server.. While retriving the password the esacpe sequence "\r" is replaced "\\r". thus the 2 password doesnt match. i tried to check for \\ at the rertival string and replace it with \ using string.replace also tried to resolve the problem using regex.. It doesnt work for me.. thx in advance.

    B 1 Reply Last reply
    0
    • T tejesh123

      Hi all I am encrypting my password using md5 algo to store in sql server.. While retriving the password the esacpe sequence "\r" is replaced "\\r". thus the 2 password doesnt match. i tried to check for \\ at the rertival string and replace it with \ using string.replace also tried to resolve the problem using regex.. It doesnt work for me.. thx in advance.

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      After encrypt before saving to database,encode it in 64 bit and then save it.and do vice versa after retrieving from DB.By this you won't get this type of issue.When get resolved ,let me know too.

      Cheers!! Brij

      T 1 Reply Last reply
      0
      • B Brij

        After encrypt before saving to database,encode it in 64 bit and then save it.and do vice versa after retrieving from DB.By this you won't get this type of issue.When get resolved ,let me know too.

        Cheers!! Brij

        T Offline
        T Offline
        tejesh123
        wrote on last edited by
        #3

        Thx for the immediate solution ... This has resolved my problem Tejesh

        B 1 Reply Last reply
        0
        • T tejesh123

          Thx for the immediate solution ... This has resolved my problem Tejesh

          B Offline
          B Offline
          Brij
          wrote on last edited by
          #4

          k :) :)

          Cheers!! Brij

          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