Helper/Config.php
private function getEncryptedKey($path, $storeId = null)
    {
        //Get management key
        $key =  $this->getScopeConfig()->getValue(
            $path,
            ScopeInterface::SCOPE_STORE,
            $storeId
        );

        //Decrypt management key
        $key = $this->encryptor->decrypt($key);
        return $key;
    }
private function getEncryptedKey($path, $storeId = null)
    {
        //Get management key
        $key =  $this->getScopeConfig()->getValue(
            $path,
            ScopeInterface::SCOPE_STORE,
            $storeId
        );

        //Decrypt management key
        $key = $this->encryptor->decrypt($key);
        return $key;
    }
private function getEncryptedKey ( $ path , $ storeId = null ) { //Get management key $ key = $ this -> getScopeConfig ( ) -> getValue ( $ path , ScopeInterface :: SCOPE_STORE , $ storeId ) ; //Decrypt management key $ key = $ this -> encryptor -> decrypt ( $ key ) ; return $ key ; }
Helper method to Get Encrypted Key from config.
Return decrypted.

@param string $path
@param int|string $storeId

@return  string
Helper method to Get Encrypted Key from config . Return decrypted .