Convert a 300 character string to a uniquely identifiable 8 character string in VBA

I have designed an user interface for a tool where the user needs to enter a "Name" which is maximum 300 characters long, and the tool generates a text file ("Name".txt) which is then uploaded to a "server" (Mainframe and Unix). I want to shorten the 300 character string into a uniquely identifiable 8 character string (because of issues primarily in mainframe), something like a tinyurl using some kind of hashing algorithm. I found a SHA1 implementation but the resulting string is 40 characters long. Can someone suggest a VBA implementation for the algorithm? The requirement of the resulting string being 8 characters long is strict - my guess is that it should be doable given that we have a limitation on the size of the input string.

以上就是Convert a 300 character string to a uniquely identifiable 8 character string in VBA的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » excel

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏