sha512crypt-cuda. Use shared valid() and binary() functions.
Closes #944.