API, üç farklı endpoint sunmaktadır:
GET /api.php?text={metin}&algorithm={algoritma}
text
- Hash'lenecek metin (zorunlu)algorithm
- Kullanılacak hash algoritması (zorunlu)
https://hashgen.net/generator/api.php?text=test&algorithm=md5
{
"success": true,
"text": "test",
"algorithm": "md5",
"hash": "098f6bcd4621d373cade4e832627b4f6"
}
GET /api.php?text={metin}
text
- Hash'lenecek metin (zorunlu)
https://hashgen.net/generator/api.php?text=test
{
"success": true,
"text": "test",
"hashes": {
"md5": "098f6bcd4621d373cade4e832627b4f6",
"sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
...
}
}
GET /api.php?random=true&algorithm={algoritma}
random
- true olarak gönderilmeli (zorunlu)algorithm
- Kullanılacak hash algoritması (zorunlu)
https://hashgen.net/generator/api.php?random=true&algorithm=md5
{
"success": true,
"text": "Ax7Kp9mN",
"algorithm": "md5",
"hash": "5d41402abc4b2a76b9719d911017c592"
}
Bu endpoint, belirtilen algoritma için 8-16 karakter uzunluğunda rastgele bir metin oluşturur ve hash değerini döndürür.
{
"success": false,
"message": "Hata mesajı"
}