Hashes an input with bcrypt with the specified cost.
the input which will be hashed
the cost used for the bcrypt algorithm. Default is 6.