Any way to decode a NATS ID?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DigitalPimp
    Confirmed User
    • Jun 2003
    • 512

    #1

    Any way to decode a NATS ID?

    Anyone know if it is possible to convert another affilaite's NATS encoded ID to the unencoded version?
  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    http://www.grouchyadmin.com/natsdecode/

    Yes, it's possible. It's just a base64 value with the terminators stripped.

    Comment

    • DigitalPimp
      Confirmed User
      • Jun 2003
      • 512

      #3
      Thanks, so I put in my encoded NATS user name and got a number back, what do I need to do to that number to get my NATS user name?

      Comment

      • StuartD
        Sofa King Band
        • Jul 2002
        • 29903

        #4
        Originally posted by DigitalPimp
        Thanks, so I put in my encoded NATS user name and got a number back, what do I need to do to that number to get my NATS user name?
        Heh, for that you'd need the sponsor's database.
        It's your database ID.
        This is me on facebook
        This is me on twitter

        Comment

        • Jace
          FBOP Class Of 2013
          • Jan 2004
          • 35562

          #5
          i think he wants to convert the NTkyMDozOjEw to his username, and without the sponsor database it is not possible because the NTkyMDozOjEw is created when the user creates the affiliate account and each sponsor has their own database

          so, I could have NTkyMDozOjEw with occash.com and someone else could have NTkyMDozOjEw with insertcashnamehere.com....all though it is pretty improbable that anyone would have NTkyMDozOjEw again, but definitely possible

          Comment

          • kristin
            GOO!
            • Sep 2002
            • 9768

            #6
            Originally posted by GrouchyAdmin
            http://www.grouchyadmin.com/natsdecode/

            Yes, it's possible. It's just a base64 value with the terminators stripped.
            When I put in my code I get 26:6:1. What is the 26?

            The 6 is the program and 1 is the site id. But the 26 from what I know has nothing to do with me as a WM or anything in my backend to associate with anything Yappo/YappoDollars.
            Vacares rules.

            "Usually only fat guys have the kind of knowledge and ability that Kristin has."

            Comment

            • DigitalPimp
              Confirmed User
              • Jun 2003
              • 512

              #7
              Originally posted by Jace
              i think he wants to convert the NTkyMDozOjEw to his username, and without the sponsor database it is not possible because the NTkyMDozOjEw is created when the user creates the affiliate account and each sponsor has their own database

              so, I could have NTkyMDozOjEw with occash.com and someone else could have NTkyMDozOjEw with insertcashnamehere.com....all though it is pretty improbable that anyone would have NTkyMDozOjEw again, but definitely possible
              Yeah that is what I wanted, oh well.

              Originally posted by kristin
              When I put in my code I get 26:6:1. What is the 26?

              The 6 is the program and 1 is the site id. But the 26 from what I know has nothing to do with me as a WM or anything in my backend to associate with anything Yappo/YappoDollars.
              Is it not the database ID of the account? If not, probably the database ID is derived from it somehow.

              Comment

              • masterwebmonkey
                Registered User
                • Feb 2004
                • 93

                #8
                function get_nats_info($decode){
                $chars = strlen($decode);
                $add = 4 - ($chars % 4);
                if ($add < 4) while($add--) $decode .= '=';
                list($campaignid, $programid, $siteid) = explode(':', base64_decode($decode));
                return $campaignid . ' : '.$programid.' : '. $siteid;
                }

                the "26" in your example is the defualt campain id for that webmaster account

                if the site uses "un-encoded" nats codes look for that ...

                the format is USERNAME;26:SITE_SHORT_NAME:PROGRAM_SHORTNAME
                Programmer looking for work you can hit me here -> Master Web Monkey or ICQ 281945544
                PHP mySQL Flash ActionScript3 html javascitpt PERL::MECINIZE expect NATS MPA3 Responsys Interact

                Comment

                • masterwebmonkey
                  Registered User
                  • Feb 2004
                  • 93

                  #9
                  sorry that should have read

                  USERNAME:PROGRAM_SHORTNAME:SITE_SHORT_NAME

                  USERNAME;(campainid):PROGRAM_SHORTNAME:SITE_SHORT_ NAME
                  Programmer looking for work you can hit me here -> Master Web Monkey or ICQ 281945544
                  PHP mySQL Flash ActionScript3 html javascitpt PERL::MECINIZE expect NATS MPA3 Responsys Interact

                  Comment

                  • GrouchyAdmin
                    Now choke yourself!
                    • Apr 2006
                    • 12085

                    #10
                    I guess everything's already been properly answered.

                    But, no, as stated, without the mapping of accountid to account, and programid to program you can not convert someone else's data accurately.

                    Comment

                    • fuzebox
                      making it rain
                      • Oct 2003
                      • 22353

                      #11
                      Originally posted by kristin
                      When I put in my code I get 26:6:1. What is the 26?
                      Campaign ID silly

                      Comment

                      • kristin
                        GOO!
                        • Sep 2002
                        • 9768

                        #12
                        Originally posted by fuzebox
                        Campaign ID silly
                        Yeah, I'm retarded.
                        Vacares rules.

                        "Usually only fat guys have the kind of knowledge and ability that Kristin has."

                        Comment

                        Working...