Tag Archives: hash

(Python) Simple XOR Hash

This is a simple hash that pads its input to the block size and XORs every block together. Output is in hexadecimal octets.

Posted in Python | Also tagged , , , , , , | Leave a comment

(Python) HMAC

HMAC, pass a hash from Crypto.Hash in PyCrypto. Key should be a bytes object. Returns a bytearray.

Posted in Python | Also tagged , , , , | Leave a comment

(JavaScript) Get URL parameters using Javascript

Usage: Let’s say we have an url: http://primera.vremenno.net?foo=yes&bar=no var hash = getUrlVars(); alert(hash['foo']); // returns ‘yes’ alert(hash['bar']); // returns ‘no’

Posted in JavaScript | Also tagged , , , , , , , | Leave a comment

Blowfish-based hashing for passwords in PHP

Storing passwords in a secure manner is very essential. Users can fall victim of cybercrime if a system containing the passwords of the users has been breached. DataLossDB illustrates the amount of data lost due to breaches. A cryptographic hash function can be used for creating a representation of a plaintext password, also known as [...]

Posted in PHP | Also tagged , , , , , , , , , , , | 2 Comments