I'm writing a unit test that says that user passwords should be hashed using bcrypt. To assert this I need to be able to check if a string looks like a bcrypt hash.
I can't find a function that tells me what hashing algorithm was used on a string, is there another way to do it other than something like regular expressions?