Allow registration with RoyalAuth hash

This fixes the "Unknown algorithm" error upon registration when using ROYALAUTH hash
Merge pull request #115 from brajo/master

Allow registration with RoyalAuth hash