{"id":23087660,"url":"https://github.com/exp-codes/dt_otp","last_synced_at":"2025-04-03T16:45:42.129Z","repository":{"id":70889508,"uuid":"225388542","full_name":"EXP-Codes/dt_otp","owner":"EXP-Codes","description":"嵌入式：动态令牌-dll\u0026so实现库","archived":false,"fork":false,"pushed_at":"2019-12-02T14:08:51.000Z","size":6489,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T05:27:39.622Z","etag":null,"topics":["programming"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EXP-Codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-02T14:03:29.000Z","updated_at":"2023-05-03T15:29:39.000Z","dependencies_parsed_at":"2023-06-28T21:10:13.662Z","dependency_job_id":null,"html_url":"https://github.com/EXP-Codes/dt_otp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fdt_otp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fdt_otp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fdt_otp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fdt_otp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EXP-Codes","download_url":"https://codeload.github.com/EXP-Codes/dt_otp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247043235,"owners_count":20874084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["programming"],"created_at":"2024-12-16T19:59:34.364Z","updated_at":"2025-04-03T16:45:42.124Z","avatar_url":"https://github.com/EXP-Codes.png","language":"C++","readme":"# dt_otp\n\n嵌入式：动态令牌-dll \u0026 so实现库\n\n这是 vs2010 cpp dll项目\n\n\n```\n/*****************************************\n  Description: OTP动态令牌: DLL/SO动态链接库\n  Authod     : EXP | http://exp-blog.com\n  Modify By  : None\n  Date       : 2015-07-20\n******************************************/\n```\n\n\n===================================\n\n动态链接库（dll/so）编译构建方法.\n\n共需构建4个动态链接库:\n\n1. dt_otp_x86.dll(win)\n2. dt_otp_x64.dll(win)\n3. dt_otp_x86.so(linux)\n4. dt_otp_x64.so(linux)\n\n===================================\n\n```\nWindows 环境编译构建（*.dll）:\n\t1. 安装VS2010 （默认只安装32位编译器，安装时必须同时选中64位编译器）\n\t2. 编译 win_86(dll):\n\t\t2.1. 选择编译器: 生成(Build) -\u003e 配置管理器 -\u003e 活动解决平台 -\u003e Win32(默认)\n\t\t2.2. 右键项目 -\u003e 属性 -\u003e 配置属性 -\u003e C/C++ -\u003e 代码生成 -\u003e 运行时库 -\u003e 选MTD \n\t\t\t(目的是把运行库静态编译进去，否则其他没装VC库的机器就跑不了了)\n\t\t2.3. 右键项目 -\u003e 重新生成\n\t\t2.4. 在本项目的 ./dt_otp/Debug 目录下可找到 dt_otp.dll 文件, 此为 32位版本.\n\t\t2.5. 重命名为 dt_otp_x86.dll 以示区分.\n\t3. 编译 win_64(dll):\n\t\t3.1. 选择编译器: 生成(Build) -\u003e 配置管理器 -\u003e 活动解决平台 -\u003e 新建 -\u003e x64\n\t\t3.2. 右键项目 -\u003e 属性 -\u003e 配置属性 -\u003e C/C++ -\u003e 代码生成 -\u003e 运行时库 -\u003e 选MTD \n\t\t\t(目的是把运行库静态编译进去，否则其他没装VC库的机器就跑不了了)\n\t\t3.3. 右键项目 -\u003e 重新生成\n\t\t3.3. 在本项目的 ./dt_otp/x64/Debug 目录下可找到 dt_otp.dll 文件, 此为 64位版本.\n\t\t3.4. 重命名为 dt_otp_x64.dll 以示区分.\n\nLinux 环境编译构建（*.so）:\n\t1. 安装64位Linux虚拟机（推荐Ubuntu）\n\t2. 安装 GCC 32和64 位环境 （默认64位系统只有64位GCC）\n\t3. 把项目 ./dt_otp/dt_otp 整个目录上传到 Linux 任意目录位置.\n\t4. 执行已编写好的脚本 sh make.sh, 将会自动编译、构建.\n\t5. 构建成功后 ./dt_otp/dt_otp 目录下会新增两个库文件 dt_otp_x86.so 和 dt_otp_x64.so\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexp-codes%2Fdt_otp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexp-codes%2Fdt_otp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexp-codes%2Fdt_otp/lists"}