Difference between revisions of "Hashdb api"

From Insomnia 24/7 Wiki
Jump to: navigation, search
imported>Wikiadmin
(Created page with '==What does it do?== The API interface allows you to retrieve passwords from the database in a single simple http request. This means you can easily add hash lookups into your …')
 
imported>Wikiadmin
Line 13: Line 13:
  
 
==What comes back if something is wrong?==
 
==What comes back if something is wrong?==
When a hash is not in the databse: '''Hash not found.'''
+
:When a hash is not in the databse: '''Hash not found.'''
Invalid MD5 hash: '''Error: Not a valid MD5 hash.'''
+
:Invalid MD5 hash: '''Error: Not a valid MD5 hash.'''
Invalid SHA-1 hash: '''Error: Not a valid SHA-1 hash.'''
+
:Invalid SHA-1 hash: '''Error: Not a valid SHA-1 hash.'''
Invalid hash type: '''Error: Not a valid hash type.'''
+
:Invalid hash type: '''Error: Not a valid hash type.'''
Not all parameters are set: '''Error: Both a 'hash' and 'type' need to be defined.'''
+
:Not all parameters are set: '''Error: Both a 'hash' and 'type' need to be defined.'''

Revision as of 14:47, 27 March 2011

What does it do?

The API interface allows you to retrieve passwords from the database in a single simple http request.

This means you can easily add hash lookups into your website or application.


How do I use it?

You send an HTTP request to http://insomnia247.nl/hash_api.php with the GET parameters type and hash.

So for example http://insomnia247.nl/hash_api.php?type=md5&hash=5f4dcc3b5aa765d61d8327deb882cf99 would return password. No HTML or styling info is added. Just the blank, plaintext password is returned.

What comes back if something is wrong?

When a hash is not in the databse: Hash not found.
Invalid MD5 hash: Error: Not a valid MD5 hash.
Invalid SHA-1 hash: Error: Not a valid SHA-1 hash.
Invalid hash type: Error: Not a valid hash type.
Not all parameters are set: Error: Both a 'hash' and 'type' need to be defined.