API 调用说明
Beta

WebMaster Online Tools

-introduction :-

       "Mxcz.net Encrypt" (API)  Was established to help web developers and programmers to take advantage of the "Encrypt" services , the current version is 0.1 API and services

        include the following:

            - encrypt  service : to encrypt custom text into available encryption type .

            - types service : to get all encryption types that available in the service .

 

        you can get three output formats as a result of the encryption

            1- Normal Text (text / plain) .

            2- XML format .

            3- JSON format .

 

1- encrypt service :-

        to encrypt custom text into available encryption type and it's located at

                http://www.mxcz.net/tools/api.ashx

 

            Parameters :-

                text = the word that we want to encrypt it . must be encoded with EncodeURl before request the service .

                type = type of encryption (md5 in this case)(22 type available) .

                format = the format of the result (you can use : xml , text , json)(text by default)  .

                codepage = Need some type of code page encoding (you can use : utf-8 , gb2312 , big5 , euc-jp , euc-kr)(utf-8 by default)  .

  

                you can pass to the extract service these types:-

               

            md5encode                     - MD5 Encryption

            sha1encode                    - SHA1 Encryption

            sha256encode                - SHA256 Encryption

            sha384encode                - SHA384 Encryption

            sha512encode                - SHA512 Encryption

            crc32encode                 - CRC32 Encryption

            base64encode                - Base 64 Encode

            base64decode                - Base 64 Decode

            quotedprintableencode   - Quoted-Printable Encode

            quotedprintabledecode   - Quoted-Printable Decode

            garbleddecode                - Carbled Char Decode

            emaildecode                    - Email Encode

            rot13encode                    - ROT-13 Encode

            rot13decode                    - ROT-13 Decode

            unicodeencode                 - Unicode Encode

            unicodedecode                 - Unicode Decode

            uuencodeencode              - UUencode Encode

            uuencodedecode              - UUEncode Decode

            hexencode                        - Hex Encode

            hexdecode                        - Hex Decode

            sqlinjectionencode            - Sql Injection Encode

            sqlinjectiondecode            - Sql Injection Decode

 

 

            Example :-

            http://www.mxcz.net/tools/api.ashx?text=mxcz.net&type=md5encode&format=xml&codepage=utf-8

 

            result :-

 

           -Text

                 7e7e46bc5569cad0b4d31588ec5dafdb              

 

           -XML

                <?xml version="1.0" ?>
                    <response>
                      <encryption>7e7e46bc5569cad0b4d31588ec5dafdb</encryption>
                 </response>

 

               -JSON

                {"encryption":"7e7e46bc5569cad0b4d31588ec5dafdb"}

 

2- types service :-

        to get all encryption types that available in the service .and it's located at

            http://www.mxcz.net/tools/api.ashx?types=list

 

        and you can get the result in three formats ( text , xml , json )

              example :-

             http://www.mxcz.net/tools/api.ashx?types=list&format=xml

 

            result :-    

 

            Text

            base64encode,base64decode,quotedprintableencode,.........,uuencodedecde

               

                XML 

                   

                <?xml version="1.0" ?>
                    <response>
                    <types>
                          <name> md5encode </name>

                                    ....................

                          <name> sha1encode </name>
                          <name> sha512encode </name>
                    </types>
              </response>

 

            JSON

            {["base64encode","base64decode","quotedprintableencode","quotedprintabledecode",.........,"uuencodedecde"]}