Tuesday, 30 August 2011

API v1 - Encrypt string


Key:
Data:

API Call: http://api.borigami.net/v1.php?k=encrypt

Input:

key=4e5da3a75af1a
data=Hello world!
  • Part in blue color is a key which can be a unique id.
  • Part in red color is text which will be encrypted.
  • Input must be post variables

Output:

  • In case of error:
  • kind=error
    data=Invalid request!
    

    Part in red color is error message.

  • In case of success:
  • kind=success
    data=Naj/VUuzWmRDMvQldwXGob38myfai+cwJ70kAoZyZyo=
    

    Part in red color is encrypted text.

No comments:

Post a Comment