Add support for DGCrypt CAS.

Thanks to Bruty 12 for the code.