生成注册码前的近乎唯一的数字字符串的方法(The method of generating a near unique string of numbers before the registration code is generated).doc
- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
生成注册码前的近乎唯一的数字字符串的方法(The method of generating a near unique string of numbers before the registration code is generated)
生成注册码前的近乎唯一的数字字符串的方法(The method of generating a near unique string of numbers before the registration code is generated)
[originality] the method of generating a near unique string of numbers in front of the registration code
Article title: [wind brave top method string of numbers almost all of the original] registration code generation before released: almost all of the 2006-01-2114:41 digital string method [landlord [original] before the registration code generation
Article author: brave wind, [E.S.T Advisory Group,]
Source: Evil octal information security team ()
Quote:
FunctionKey1 (Str) str-- registration content
DimI, A A--; the digital string before the registration code is generated
ForI=1ToLen (Str)
A=AAbs (Asc (Mid (Str, I, 1))
Next
the loop above converts all content in the registered content into a ANSI string
Do
IfLen (A) 12Then
A=Key2 (A) calls the function key2 to shorten the length before the registration code is generated
Else
ExitDo
EndIf
Loop
A=Key2 (A) do it again so that all the numbers can be used again
the string is limited to a certain number by the loop above
Key1=Key3 (A) calls other functions to convert numbers into their own unique registration codes
EndFunction
FunctionKey2 (Num)
DimA, B, C
A=Mid (Num, 1,6) take the string 1-6 digits
B=Mid (Num, 7,6) take the string 6-12 digits
C=Mid (Num, 13) takes the number after the string 12, corresponding to the function key1
Key2=A\9B\7C shorten strings, numbers, and you can choose one of the 1-9
EndFunction
There are many ways to convert numbers into specific characters. Because my own things are written by myself, this method is not published.
The method is very simple, for everyone to make a reference.
Tips:
If the string is too short and returns, we can pass the mid and Len of the 2 built-in functions in the conversion when the final registration code is fixed into a specific length, such as length of 1, then len (mid (STR, 3,3)) return 0, so you have a fixed length content
Or you ca
您可能关注的文档
- 热带地区的主要气候类型有(The main types of climate in the tropics are).doc
- 热身 锻炼前你必须要做的(You have to do it before you warm up).doc
- 热身运动(Warm-up).doc
- 热镀锌资料(Hot-dip galvanizing data).doc
- 热量和蛋白质摄取量(Calories and protein intake).doc
- 焊前预热及焊后热处理的作用(Pre weld preheating and post weld heat treatment).doc
- 焊接技师理论试题及答案(Welding technician theory, test questions and answers).doc
- 焊接试题(Welding questions).doc
- 焊接考试(Welding test).doc
- 焊锡工艺中常用的化学药品(Chemicals commonly used in soldering process).doc
文档评论(0)