可加密和解密字符串的TCL代码 [英] TCL code that can encrypt and decrypt a string

查看:1539
本文介绍了可加密和解密字符串的TCL代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一段代码来定义可以加密和解密一段字符串的函数。我基本上想要的是,字符串不应该对第三方用户可见,所以当字符串发生在一个文件中时,它将使用encrypt函数转换为一个整数值,然后将其作为参数传递另一个文件。那里的decrpyt函数然后解密它并使用字符串来执行它的操作。



任何建议或已经可用的代码将会很好!



请帮助我。谢谢!

解决方案

安装 tcllib 。在tcllib中实现了几种标准加密算法。



以下加密算法可用:




I need a piece of code that defines functions which can encrypt and decrypt a piece of string. What I basically want is that the string should not be visible to third-party users, so that when the string originates in one file, it is converted to, say, an integer value using the encrypt function and then it is passed as parameter to another file. There the decrpyt function then decrypts it back and uses the string to perform actions on it.

Any suggestions or already available codes will be just fine!

Please help me out. Thanks!

解决方案

Install tcllib. There are several standard encryption algorithms implemented in tcllib.

The following encryption algorithms are available:

这篇关于可加密和解密字符串的TCL代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆