protected function translateCipher(int $nscaName) : string {
        switch ($nscaName) {
            case self::ENCRYPT_DES:
                return MCRYPT_DES;
            case self::ENCRYPT_3DES:
                return MCRYPT_3DES;
            case self::ENCRYPT_CAST128:
                return MCRYPT_CAST_128;
            case self::ENCRYPT_CAST256:
                return MCRYPT_CAST_256;
            case self::ENCRYPT_XTEA:
                return MCRYPT_XTEA;
            case self::ENCRYPT_3WAY:
                return MCRYPT_THREEWAY;
            case self::ENCRYPT_BLOWFISH:
                return MCRYPT_BLOWFISH;
            case self::ENCRYPT_TWOFISH:
                return MCRYPT_TWOFISH;
            case self::ENCRYPT_LOKI97:
                return MCRYPT_LOKI97;
            case self::ENCRYPT_RC2:
                return MCRYPT_RC2;
            case self::ENCRYPT_ARCFOUR:
                return MCRYPT_ARCFOUR;
            case self::ENCRYPT_RIJNDAEL128:
                return MCRYPT_RIJNDAEL_128;
            case self::ENCRYPT_RIJNDAEL192:
                return MCRYPT_RIJNDAEL_192;
            case self::ENCRYPT_RIJNDAEL256:
                return MCRYPT_RIJNDAEL_256;
            case self::ENCRYPT_WAKE:
                return MCRYPT_WAKE;
            case self::ENCRYPT_SERPENT:
                return MCRYPT_SERPENT;
            case self::ENCRYPT_ENIGMA:
                return MCRYPT_ENIGNA;
            case self::ENCRYPT_GOST:
                return MCRYPT_GOST;
            case self::ENCRYPT_SAFER64:
                return MCRYPT_SAFER64;
            case self::ENCRYPT_SAFER128:
                return MCRYPT_SAFER128;
            case self::ENCRYPT_SAFERPLUS:
                return MCRYPT_SAFERPLUS;
        }
        throw new EncryptionException('Unknown Cipher: ' . $nscaName);
    }