Adding in bcrypt function (including backward compatibility)