Recently, we have proposed a fast block cipher encryption algorithm based on chaotic maps (BCCM). We released that the whole encryption process is extremely sensitive to input message and secret key, which could be exploited to calculate hash value or message authentication code of input message. In this paper, we propose a fast hash function based on block cipher encryption algorithm with changeable parameters (HFBCCM). The proposed hash function has very simple and flexible design that produces different hash values length using different block sizes. Theoretical analysis and computer simulations indicate that our algorithm can satisfy all requirements of cryptography hash functions. It is simple, flexible, high secure, very fast algorithm, and extremely sensitivity to input message and secret key with strong confusion and diffusion capability. These properties confirm that HFBCCM algorithm is practical and reliable with high potential to be adopted in E-Commerce.