function get_crypto() { // default to crypto-js if (empty($this->paste)) { return 'CRYPTO_JS'; } // return the type of crypto that was used for the paste return $this->paste['crypto']; }