What encryption is this?

Discussion in 'PHP' started by PinoyIto, Jan 31, 2014.

  1. #1
    Hello,

    I am transferring a asp.net vp to php, I am having problem with the encryption of the old passwords.
    Here is an example
    ug1931rL0PLXIfzTYcsqkbPIyRo=

    Does anyone knew what encryption used here?

    thanks in advance
     
    PinoyIto, Jan 31, 2014 IP
  2. WebDeveloperSahil

    WebDeveloperSahil Active Member

    Messages:
    331
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Isn't it base64 encoding?
     
    WebDeveloperSahil, Jan 31, 2014 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    It doesn't return any legitimate string if used with base64_decode, so I doubt that's the only thing they did. However - if you have the asp-code, why not look there to see what kind of encryption they used? (If they used an encryption, that's bad practice, however - encryptions can be reversed - you don't want to have a reversible password-encryption stored - you want a one-way hash).
    Or, just null all the passwords, and provide users with a link, via email, to reset their passwords if they input their email for logging in.
     
    PoPSiCLe, Jan 31, 2014 IP
  4. dayvo

    dayvo Active Member

    Messages:
    585
    Likes Received:
    52
    Best Answers:
    1
    Trophy Points:
    55
    #4
    ^^ Depends on the nature of the site, but this is the way I would go. And definitely implement one way hashing.
     
    dayvo, Jan 31, 2014 IP
  5. Code Developer

    Code Developer Active Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    58
    #5
    Please post the part of the encryption code to see how its encoding.
     
    Code Developer, Jan 31, 2014 IP