开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 386|回复: 7
收起左侧

[已解决] 哪位大佬有国密sm4cbc加解密

 关闭 [复制链接]
结帖率:89% (82/92)
发表于 2024-10-5 14:39:53 | 显示全部楼层 |阅读模式   黑龙江省哈尔滨市
5精币
看论坛里的都不支持key和iv是十六进制的
支持十六进制的又不支持长文本



帮帮

最佳答案

查看完整内容

https://github.com/JuneAndGreen/sm-crypto 用js

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳
发表于 2024-10-5 14:39:54 | 显示全部楼层   黑龙江省哈尔滨市
https://github.com/JuneAndGreen/sm-crypto 用js
回复

使用道具 举报

签到天数: 23 天

发表于 2024-10-5 15:55:45 | 显示全部楼层   广东省揭阳市
多长的文本 密钥相关数据发出来看看~

回复

使用道具 举报

结帖率:89% (82/92)

签到天数: 1 天

 楼主| 发表于 2024-10-5 16:03:05 | 显示全部楼层   黑龙江省哈尔滨市
Hoibben 发表于 2024-10-5 15:55
多长的文本 密钥相关数据发出来看看~

key(hex):82e33181212e7bc2318ce834aaf143e0

iv(hex):0b124b42ff3169b6ddcb537fad320300

明文:{"product":"mailmaster_android","platform":"android","version":"1.6.5","appVersion":"7.19.7","systemVersion":28,"model":"TAS-AL00","resolution":"540*960","carrier":"China Mobile GSM","network":"WIFI","emulator":0,"aId":"48d815db2df66b37","uniqueId":"37a9c5f748b08d91f0f3e058b6959781522b3d3c","packageSign":"DBFC7A2AF1F73C0A0D179E39E6DAEE31","ua":"Mozilla\/5.0 (Linux; Android 9; TAS-AL00 Build\/PQ3B.190801.06281543; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/91.0.4472.114 Mobile Safari\/537.36","time":1728093717582,"reqId":"7b3d8a22cc2c401c82748fdc3e5126f2","wmf":1,"compId":"41e29414-4fcc-478d-99c4-6a16b557d6e0","compQues":"woVmIfMmB3qI6a7ywfvS+\/7oyCpQ0cGCf+o2wYqut+hCl30a0laC7UpL5GEO3V4go9Lm9sAQRF40\r\nbfuF9U4+KGOzsDQrLUF+S8oZgUS+zftjQG2xZDxyvTg\/e7TLT3xbBZxGoTBa1GFdOd4JWnv77uAW\r\nveQ6Qqwsvy1FdUr6W6y\/Fr4UKa7asXdkB3xb7DlNkiotNGC0RudRCkg8mfJf7PgaBqsl476oxq\/8\r\nHb\/Vjv569e1uDmC2O0CvMu5HUFMxXKGdqsNje2amS986fh4iXQ==","compAns":"{\"t\":42778,\"x\":\"894d7f59150e9fef27873baf60ed2171d0\",\"runTimes\":42778,\"spendTime\":1105}"}

加密结果(hex):1c5cc54e77ce98bb9b239e47ed16588f4c87dd4a946199f490e0abeeb70c50c275124f416bc56cdd24e2091f7d010d9414883463242686b5e27938b36f8a1ca309fc0adc1d7aca4367b96011d64f2674384bcd3ddca8f993f7e1b58c669e94076df3497510123169f7f0da1422acea4879ae33fddec53485d3e83422118f5e521162fd9ea580f845541a4db6deb49450745bb7eb6b3c21a26879dba556d67eaab7c093e566f0c485a6db7f3af89980e7eba9c10ac5727757add78fa89d65dbf2f6f4f75efbba2e0e76722fd275fd13b75852b3612aaade44fc6ac360a0eefdeddb326eb7998fea1f6e636fb406f7d0d08156ba3953a8ea2870e9c794c81439c321b01df483fab03c9a816739c49e17c69604489648a2567a352bb6547dbeba310633705cb841d440fe0a9523fe964a7eb3a82d7efc2373694b32ec07fe6b44254ed788a5ea04e47c0d8726027fc0d9c34fe1fa831e737eb266d325d6b30596b61010abe982f8ff17d67b406869f42633d570d135b00666065b93ac23e44dc77608322cbc8b6a9e33247e86da44bb69500ad886f777435b426529c59aa746873aa024710f5ef6f27a49ff6bf5eacc3e15f622d10c6f60aaeb8cd73d936d4f94b1086f8b49fc54aea6ee0804ccfe9b22343034bf4689d93176c9059fdcd8567fead74fce61e0bf14e5a4eb87a91b5ab463c8132d1701eab7d4afd1b4e00da15b19cb63481e305cc8b5377938dbcb6a1bc53588aa609e034302dc85ab532836591f928059687e1366127c0183b7484228652235bd921187a42aa30675e620a87f70768085b6e9de8fffd938f06fd2e67ab759f9e7d554bda930f3cea2a06f1752f265b6ba61d4793a266df242fc959426f3815c4ccd28127b4ddd644c9cbe7070dfa888aa0d52e9a195cfa125d4060db59a86ed9966a72f4e2bffa64fa3c2724d0f06be0d371aaae806d78eabc9ba9323f4fe6de21ec869e96944e7cd30de588307d5e88931381103715545b379ae853c53ef902afa1057cede16a35b695842a0be54412393ef3b05f43ed54d41818c9e9a3686c3b3df7439c2e6dcbe205334bc79c1bf5b98a9ad44feb97fc762d1a56af757cfe223e089e1ef70359376370388811c258d3f2e43737c494b72b1afda4c6c6c613a8376cba07ef81f6b7b71489892601d554f02153f3353ec62c4e776c443541ab01bebb4fe1b6313a1215bf0acb206a713e4d1054199142feae067179f7f203e6f50f39c7c7f7d27d73fedef2315d2cd41c909bf396c7a520eaaebe037189683cfd86b5909652443e77f83c7a8ff982b9cde551d7dc32e5a1ae7588261f91612af89b972fb2b2f26f5fea99fda9587afd7970fff02276898ab979f075cf7df9bd3e34969ed072248ea7870edac38a6b62c4cc9b30206657eccb7497c4a97120a8ff890cddab100730ee9ece95e4b4e12d03f8699f815eaeb0062c949a9a30760b0bb03a3118f390cb0c02c2523bdf359c523e694e1115d5d0652e4ee0ae3

回复

使用道具 举报

结帖率:89% (82/92)

签到天数: 1 天

 楼主| 发表于 2024-10-5 16:05:16 | 显示全部楼层   黑龙江省哈尔滨市
  
子程序名返回值类型公开备 注
子程序2  
key (hex):82e33181212e7bc2318ce834aaf143e0
iv (hex):0b124b42ff3169b6ddcb537fad320300
明文:{"product":"mailmaster_android","platform":"android","version":"1.6.5","appVersion":"7.19.7","systemVersion":28,"model":"TAS-AL00","resolution":"540*960","carrier":"China Mobile GSM","network":"WIFI","emulator":0,"aId":"48d815db2df66b37","uniqueId":"37a9c5f748b08d91f0f3e058b6959781522b3d3c","packageSign":"DBFC7A2AF1F73C0A0D179E39E6DAEE31","ua":"Mozilla\/5.0 (Linux; Android 9; TAS-AL00 Build\/PQ3B.190801.06281543; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/91.0.4472.114 Mobile Safari\/537.36","time":1728093717582,"reqId":"7b3d8a22cc2c401c82748fdc3e5126f2","wmf":1,"compId":"41e29414-4fcc-478d-99c4-6a16b557d6e0","compQues":"woVmIfMmB3qI6a7ywfvS+\/7oyCpQ0cGCf+o2wYqut+hCl30a0laC7UpL5GEO3V4go9Lm9sAQRF40\r\nbfuF9U4+KGOzsDQrLUF+S8oZgUS+zftjQG2xZDxyvTg\/e7TLT3xbBZxGoTBa1GFdOd4JWnv77uAW\r\nveQ6Qqwsvy1FdUr6W6y\/Fr4UKa7asXdkB3xb7DlNkiotNGC0RudRCkg8mfJf7PgaBqsl476oxq\/8\r\nHb\/Vjv569e1uDmC2O0CvMu5HUFMxXKGdqsNje2amS986fh4iXQ==","compAns":"{\"t\":42778,\"x\":\"894d7f59150e9fef27873baf60ed2171d0\",\"runTimes\":42778,\"spendTime\":1105}"}
加密结果 (hex):1c5cc54e77ce98bb9b239e47ed16588f4c87dd4a946199f490e0abeeb70c50c275124f416bc56cdd24e2091f7d010d9414883463242686b5e27938b36f8a1ca309fc0adc1d7aca4367b96011d64f2674384bcd3ddca8f993f7e1b58c669e94076df3497510123169f7f0da1422acea4879ae33fddec53485d3e83422118f5e521162fd9ea580f845541a4db6deb49450745bb7eb6b3c21a26879dba556d67eaab7c093e566f0c485a6db7f3af89980e7eba9c10ac5727757add78fa89d65dbf2f6f4f75efbba2e0e76722fd275fd13b75852b3612aaade44fc6ac360a0eefdeddb326eb7998fea1f6e636fb406f7d0d08156ba3953a8ea2870e9c794c81439c321b01df483fab03c9a816739c49e17c69604489648a2567a352bb6547dbeba310633705cb841d440fe0a9523fe964a7eb3a82d7efc2373694b32ec07fe6b44254ed788a5ea04e47c0d8726027fc0d9c34fe1fa831e737eb266d325d6b30596b61010abe982f8ff17d67b406869f42633d570d135b00666065b93ac23e44dc77608322cbc8b6a9e33247e86da44bb69500ad886f777435b426529c59aa746873aa024710f5ef6f27a49ff6bf5eacc3e15f622d10c6f60aaeb8cd73d936d4f94b1086f8b49fc54aea6ee0804ccfe9b22343034bf4689d93176c9059fdcd8567fead74fce61e0bf14e5a4eb87a91b5ab463c8132d1701eab7d4afd1b4e00da15b19cb63481e305cc8b5377938dbcb6a1bc53588aa609e034302dc85ab532836591f928059687e1366127c0183b7484228652235bd921187a42aa30675e620a87f70768085b6e9de8fffd938f06fd2e67ab759f9e7d554bda930f3cea2a06f1752f265b6ba61d4793a266df242fc959426f3815c4ccd28127b4ddd644c9cbe7070dfa888aa0d52e9a195cfa125d4060db59a86ed9966a72f4e2bffa64fa3c2724d0f06be0d371aaae806d78eabc9ba9323f4fe6de21ec869e96944e7cd30de588307d5e88931381103715545b379ae853c53ef902afa1057cede16a35b695842a0be54412393ef3b05f43ed54d41818c9e9a3686c3b3df7439c2e6dcbe205334bc79c1bf5b98a9ad44feb97fc762d1a56af757cfe223e089e1ef70359376370388811c258d3f2e43737c494b72b1afda4c6c6c613a8376cba07ef81f6b7b71489892601d554f02153f3353ec62c4e776c443541ab01bebb4fe1b6313a1215bf0acb206a713e4d1054199142feae067179f7f203e6f50f39c7c7f7d27d73fedef2315d2cd41c909bf396c7a520eaaebe037189683cfd86b5909652443e77f83c7a8ff982b9cde551d7dc32e5a1ae7588261f91612af89b972fb2b2f26f5fea99fda9587afd7970fff02276898ab979f075cf7df9bd3e34969ed072248ea7870edac38a6b62c4cc9b30206657eccb7497c4a97120a8ff890cddab100730ee9ece95e4b4e12d03f8699f815eaeb0062c949a9a30760b0bb03a3118f390cb0c02c2523bdf359c523e694e1115d5d0652e4ee0ae3

回复

使用道具 举报

结帖率:89% (82/92)

签到天数: 1 天

 楼主| 发表于 2024-10-5 16:06:54 | 显示全部楼层   黑龙江省哈尔滨市
Hoibben 发表于 2024-10-5 15:55
多长的文本 密钥相关数据发出来看看~

新建文本文档 2.txt (3.25 KB, 下载次数: 12)
回复

使用道具 举报

结帖率:89% (82/92)

签到天数: 1 天

 楼主| 发表于 2024-10-5 16:52:10 | 显示全部楼层   黑龙江省哈尔滨市
都由我来赎 发表于 2024-10-5 16:31
https://github.com/JuneAndGreen/sm-crypto 用js

不会改啊
回复

使用道具 举报

结帖率:89% (82/92)

签到天数: 1 天

 楼主| 发表于 2024-10-5 17:28:44 | 显示全部楼层   黑龙江省哈尔滨市
都由我来赎 发表于 2024-10-5 16:31
https://github.com/JuneAndGreen/sm-crypto 用js

搞定谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表