"Encrypt it" (API) Was established to help web developers and programmers to take advantage of the "Encrypt it" services , the current version is 1.0 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 .
one error can happened :
error 0:Invalid Encryption Type
to encrypt custom text into available encryption type and it's located at
http://encit.shamekh.ws/api/1.0/encrypt/
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)(14 type available) .
format = the format of the result (you can use : xml , text , json)(text by default) .
md5 - MD5 Encryption
b64encode - Base 64 Encode
b64decode - Base 64 Decode
backwards - to reverse the text
piglatin - Pig Latin encode
unpiglatin - Pig Latin Decode
rot13 - ROT-13 Encode
urlencode - URL Encode
urldecode -URL Decode
leetencode - Leet (hackers language) Encode
leetdecode -Leet (hacker language) Decode
htmlencode -HTML Encode
htmldecode - HTML Decode
Example :-
http://encit.shamekh.ws/api/1.0/encrypt/?text=shamekh&type=md5&format=xml
result :-
-Text
7e7e46bc5569cad0b4d31588ec5dafdb
-XML
-JSON
{"encryption":"7e7e46bc5569cad0b4d31588ec5dafdb"}
when you request invalid or not available encryption type , you will get error result .
Text
XML
<response> <error num="0">Invalid Encryption Type</error> </response>
JSON
{"error":["0","Invalid Encryption Type"]}
to get all encryption types that available in the service .and it's located at
http://encit.shamekh.ws/api/1.0/types/
and you can get the result in three formats ( text , xml , json )
example :-
http://encit.shamekh.ws/api/1.0/types/?format=xml
md5 , b64encode , b64decode , backwards , ............, htmlencode ,
....................
{["md5","b64encode","b64decode","backwards",........"htmldecode"]}
Copyright © 2008 shamekh.ws. All Rights Reserved.
home | API