首页 \ 问答 \ 在Windows上使用curl / curl.h(curl/curl.h on Windows)

在Windows上使用curl / curl.h(curl/curl.h on Windows)

我的c ++脚本中有以下内容:

#include "curl/curl.h"

当我尝试编译它时,我收到以下错误:

\ Users \ username \ Desktop \ Temp \ talkbot \ main.cpp C:\ Users \ username \ Desktop \ Temp \ talkbot \ C curl.h:没有这样的文件或目录。

所以我四处搜索并尝试下载cURL for windows。 我最终登录http://www.paehl.com/open_source/?CURL_7.21.3并选择“不使用SSL下载”。 我下载了它,我只是得到了curl.exe。

我该怎么办这个文件来获取curl.h? 提前致谢。


I have the following in my c++ script:

#include "curl/curl.h"

When I try to compile it, I get the following error:

\Users\username\Desktop\Temp\talkbot\main.cpp C:\Users\username\Desktop\Temp\talkbot\C curl.h: No such file or directory.

So I searched around and tried to download cURL for windows. I ended up on http://www.paehl.com/open_source/?CURL_7.21.3 and choose Download without SSL. I downloaded it and I simply got curl.exe.

What am I supposed to do with that file to get curl.h? Thanks in advance.


原文:https://stackoverflow.com/questions/4530780
更新时间:2023-04-14 22:04

最满意答案

在第二个代码段中,您在已加密的字符串str上调用了crypt 。 因此,根据您的需要,要么不加密两次:

local enc1 = {29, 58, 93, 28 ,27};
local str = "#c)*J}s-Mj!=[f3`7AfW{XCW*.EI!c0,i4Y:3Z~{";
print("Decryption: " .. crypt(crypted,enc1,true));

或解密两次:

local enc1 = {29, 58, 93, 28 ,27};
local str = "#c)*J}s-Mj!=[f3`7AfW{XCW*.EI!c0,i4Y:3Z~{";
local crypted = crypt(str,enc1)
print("Decryption: " .. crypt(crypt(crypted,enc1,true), enc1, true))

In your second code snippet, you called crypt on the already encrypted string str. So depending on what you want, either don't encrypt it twice:

local enc1 = {29, 58, 93, 28 ,27};
local str = "#c)*J}s-Mj!=[f3`7AfW{XCW*.EI!c0,i4Y:3Z~{";
print("Decryption: " .. crypt(crypted,enc1,true));

Or decrypt it twice:

local enc1 = {29, 58, 93, 28 ,27};
local str = "#c)*J}s-Mj!=[f3`7AfW{XCW*.EI!c0,i4Y:3Z~{";
local crypted = crypt(str,enc1)
print("Decryption: " .. crypt(crypt(crypted,enc1,true), enc1, true))

相关问答

更多
  • 好吧,不是算法本身 - 一旦你有了密钥,数据就会被解密。 但是有一些技术可以做到这一点,他们通常会转向以下之一: 软件混淆(你可以谷歌关键词,如“软件保护”),或 硬件攻击对策(例如查找“可信执行环境”),或 两者同时进行。 例如,当您在连接到HDMI电视的PC上观看Netflix电影时会发生这种情况:在非常简化的情况下,会发生的事情是电影是使用某个DRM密钥K1加密的,它会被K1解密在PC上,然后在通往电视的路上立即用新的HDCP密钥K2重新加密(然后电视将使用相同的HDCP密钥K2对其进行解密)。 与M ...
  • 有必要将编码消息保持为二进制编码: fs.writeFileSync('ciphertext', encrypted, {encoding: 'binary'}); It is necessary to keep the coded message in the binary encoding: fs.writeFileSync('ciphertext', encrypted, {encoding: 'binary'});
  • DataEncryptor每个实例DataEncryptor生成新密钥。 您需要使用加密字符串的相同密钥进行解密。 如果在同一进程中完成此操作,则保留对DataEncryptor key的引用。 否则,您需要使用DataEncryptor(byte[] key, byte[] iv)构造函数进行初始化。 尝试这样的代码: class Program { static void Main(string[] args) { string key, iv; var ...
  • 这里的一切都是正确的。 但。 在您的示例中,必须使用AES- 256 -ECB。 这里是可运行的代码: require "openssl" require "digest" require "uri" require "base64" data = 'T353/s48iKzAf61b2dCOnqUApYa4xxjye8he4oAtJHyyCKl8sCbI33hfP6IqOsQZEIWeQBCsvy97xwJMPD8RwLG4J0wgX9Ihlti1vMar+5nrLrCR4lAfZcoJopoBt1JVn ...
  • 找到可能的答案: “默认情况下,Java Ciphers(至少在Sun的实现中)是在所谓的电子密码本(ECB)模式下构建的。” (来源: http : //www.javamex.com/tutorials/cryptography/block_modes.shtml ) 因此,如果默认使用ECB,我想这意味着没有初始化向量,我可以使用OpenSSL中的以下方法: void AES_ecb_encrypt(*in, *out, *key, enc); 使用AES_decrypt()我可以解密源自Java端 ...
  • 我个人使用lua-crypto,但它需要OpenSSL。 你可以查看lua-wiki 。 最近我为这个名为bgcrypto的 AES实现创建了包装器。 它没有外部依赖,但我真的不在实际工作中使用它。 Personally i use lua-crypto but it requires OpenSSL. You can check lua-wiki. Recently i create wrapper for this AES implementation called bgcrypto. It has n ...
  • 在第二个代码段中,您在已加密的字符串str上调用了crypt 。 因此,根据您的需要,要么不加密两次: local enc1 = {29, 58, 93, 28 ,27}; local str = "#c)*J}s-Mj!=[f3`7AfW{XCW*.EI!c0,i4Y:3Z~{"; print("Decryption: " .. crypt(crypted,enc1,true)); 或解密两次: local enc1 = {29, 58, 93, 28 ,27}; local str = "#c)*J} ...
  • //byte[] ciphertext = utf8.GetBytes(filetest.Text); byte[] ciphertext = Convert.FromBase64String(filetest.Text); //byte[] ciphertext = utf8.GetBytes(filetest.Text); byte[] ciphertext = Convert.FromBase64String(filetest.Text);
  • 问题是这样的 //for decrypt almost the same thing $password = $_POST['password']; $crypt->setData($password); $decrypted = $crypt->decrypt(); 您正在设置数据以解密原始密码,而不是您需要传递密码加密的数据 $crypt->setData($encrypted); $decrypted = $crypt->decrypt(); 问候 The problem ...
  • 使用AES(或类似的对称算法)进行加密。 Lua中的AES可用作外部库(即aeslua )。 在PHP中,您可以使用mcrypt库。 Use AES (or a similar symetric algorithm) for encryption. AES in Lua is available as an external library(i.e. aeslua). In PHP you could use the mcrypt library.

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。