有朋友下了我写的文件校验器,说没有源码,现在就放出源码,希望对大家有用。
这个校验器没有处理对于程序代码超过64K的单片机程序。
2024/5/29 6:39:04 4.01MB 文件校验器 Checksum 源代码
1
Achecksumisanalgorithmthatscansapacketofdataandreturnsasinglenumber.Theideaisthatifthepacketischanged,thechecksumwillalsochange,sochecksumsareoftenusedfordetectingtransmissionerrors,validatingdocumentcontents,andinmanyothersituationswhereitisnecessarytodetectundesirablechangesindata.Forthisproblem,youwillimplementachecksumalgorithmcalledQuicksum.AQuicksumpacketallowsonlyuppercaselettersandspaces.Italwaysbeginsandendswithanuppercaseletter.Otherwise,spacesandletterscanoccurinanycombination,includingconsecutivespaces.AQuicksumisthesumoftheproductsofeachcharacter'spositioninthepackettimesthecharacter'svalue.Aspacehasavalueofzero,whilelettershaveavalueequaltotheirpositioninthealphabet.So,A=1,B=2,etc.,throughZ=26.HereareexampleQuicksumcalculationsforthepackets"ACM"and"MIDCENTRAL":ACM:1*1+2*3+3*13=46MIDCENTRAL:1*13+2*9+3*4+4*0+5*3+6*5+7*14+8*20+9*18+10*1+11*12=650InputTheinputconsistsofoneormorepacketsfollowedbyalinecontainingonly#thatsignalstheendoftheinput.Eachpacketisonalinebyitself,doesnotbeginorendwithaspace,andcontainsfrom1to255characters.OutputForeachpacket,outputitsQuicksumonaseparatelineintheoutput.SampleInputACMMIDCENTRALREGIONALPROGRAMMINGCONTESTACNACMABCBBC#SampleOutput46650469049751415
2024/2/28 16:27:03 432B ACM
1
jre6aa_16004_pa.depot使用方法:JDK,JRE,andPlug-in6.0.04InstallationInstructionsPleaseseetheJDK,JRE,andPlug-in6.0.04ReleaseNotes'installationinstructionsfordetailedinstallationinstructions.Note:Whendownloadinga.depot,.tar,or.shfile,somebrowsersdon'trecognizethe.depot,.tar,or.shformatandtreatthefileasatextorapplication-specificfile.Ifthishappens,right-clicktheDownloadDirectly>>button(ontheSoftwaredownloadconfirmationwindow)andselectSaveTargetAs....ToverifythatthefiledownloadedcorrectlyyouneedtouseMD5SecureChecksum(md5sum).YoucandownloadMD5SecureChecksumatHP-UXMD5SecureChecksumifyoudonotalreadyhavethisutility.ToverifyyourdownloadwithMD5SecureChecksum,attheUNIXprompt,executethecommand:md5sumIfthefiledownloadedcorrectly,thechecksumnumberforthefileyoudownloadedshouldmatchtheMD5Checksumnumbergivenforthatfile.
2023/11/23 17:38:56 12.39MB HP-UX JDK6 资源 下载
1
本资料面向LIN总线初学者,对什么是LIN,LIN的特征,物理层、协议层及应用层相关规定进行说明。
本资料主要是针对LIN2.1讲解。
使用注意事项.............................................................................................................................................11.LIN是什么?.........................................................................................................................................41.1LIN子网(Cluster)与节点(Node)............................................................................................................51.2主/从机节点与主/从机任务..................................................................................................................72.LIN的特点.............................................................................................................................................83.LIN协议层.............................................................................................................................................93.1帧的结构.............................................................................................................................................93.1.1同步间隔段(BreakField)...................................................................................................................93.1.2同步段(SyncByteField)..................................................................................................................103.1.3受保护ID段(ProtectedIdentifierField)..............................................................................................113.1.4数据段(DataField)...........................................................................................................................123.1.5校验和段(ChecksumField)..............................................................................................................13
2023/10/26 7:13:12 1.68MB LIN总线 入门 Resases
1
appid:="************" apikey:="***********88" curtime:=strconv.FormatInt(time.Now().Unix(),10) param:=make(map[string]string) param["engine_type"]="sms16k" param["aue"]="raw" tt,_:=json.Marshal(param) base64_param:=base64.StdEncoding.EncodeToString(tt) w:=md5.New() io.WriteString(w,apikey+curtime+base64_param) checksum:=fmt.Sprintf("%x",w.Sum(nil)) body,_:=ioutil.ReadFile("./ceshi.pcm") base64_audio:=base64.StdEncoding.EncodeToString(body) data:=url.Values{} data.Add("audio",string(base64_audio)) res_body:=data.Encode() client:=&http.Client{} req,_:=http.NewRequest("POST","http://api.xfyun.cn/v1/service/v1/iat",strings.NewReader(res_body)) req.Header.Set("X-Appid",appid) req.Header.Set("Content-Type","application/x-www-form-urlencoded") req.Header.Set("X-Param",base64_param) req.Header.Set("X-CheckSum",checksum) req.Header.Set("X-Curtime",curtime) response,_:=client.Do(req) deferresponse.Body.Close() resp_body,_:=ioutil.ReadAll(response.Body) fmt.Print(string(resp_body))
2023/8/8 21:12:27 1KB 科大讯飞 go语言 语音转写
1
asp.net文件和文件夹压缩调用类库ICSharpCode.SharpZipLib.dllusingSystem.IO;usingICSharpCode.SharpZipLib;usingICSharpCode.SharpZipLib.Checksums;usingICSharpCode.SharpZipLib.Zip;usingICSharpCode.SharpZipLib.GZip;usingICSharpCode.SharpZipLib.BZip2;usingICSharpCode.SharpZipLib.Zip.Compression;usingICSharpCode.SharpZipLib.Zip.Compression.Streams;protectedvoidButton1Click(objectsender,EventArgse){string[]str=newstring[1];str[0]=@"E:\9541241560\地学院\";Zip(str);}#region压缩//////压缩文件,默认目录为当前目录,文件名为当前目录名,压缩级别为6//////要压缩的文件或文件夹publicvoidZip(paramsstring[]fileOrDirectory){Zip(6,fileOrDirectory);}//////压缩文件,默认目录为当前目录,文件名为当前目录名//////压缩的级别///要压缩的文件或文件夹publicvoidZip(intzipLevel,paramsstring[]fileOrDirectory){if(fileOrDirectory==null)return;elseif(fileOrDirectory.Length<1)return;else{stringstr=fileOrDirectory[0];if(str.EndsWith("\\"))str=str.Substring(0,str.Length-1);str+=".zip";Zip(str,zipLevel,fileOrDirectory);}}//////压缩文件,默认目录为当前目录//////压缩后的文件///压缩的级别///要压缩的文件或文件夹publicvoidZip(stringzipedFileName,intzipLevel,paramsstring[]fileOrDirectory){if(fileOrDirectory==null)return;elseif(fileOrDirectory.Length<1)return;else{stringstr=fileOrDirectory[0];if(str.EndsWith("\\"))str=str.Substring(0,str.Length-1);str=str.Substring(0,str.LastIndexOf("\\"));Zip(zipedFileName,str,zipLevel,fileOrDirectory);}}//////压缩文件//////压缩后的文件///压缩的级别///当前所处目录///要压缩的文件或文件夹publicvoidZip(stringzipedFileName,stringcurrentDire
2023/7/16 11:55:29 236KB .net 解压缩 SharpZipLib
1
[AdblockPlus2.0]Checksum:MukchIBXrkM7dRCzWDv1ZA!Version:202101241442!Title:EasyListChina!ChinesesupplementfortheEasyListfiltersLastModified:24Jan202114:42UTC!Expires:4days(updatefrequency)!Homepage:http://abpchina.org/forum/License:https://easylist-downloads
2023/7/13 14:58:17 532KB 广告 过滤器
1
用WINHEX剧本实现为了EXFAT文件体系DBR校验码的天生,避开了繁杂的C++法度圭表标准,使患上不懂C++也能举行美满修复EXFAT分区的责任。
2023/4/29 17:22:37 1KB WINHEX脚本
1
需要业余人士,C语言。
2023/3/29 13:43:19 30.1MB 开发工具
1
计算PE文件校验和的工具,一些特殊场合可能会用到,比如说你修改了bootmgr.exe,就需求这工具重新校验
2022/9/22 17:41:23 10KB PE文件校验
1
共 12 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡