将字符串加密/压缩为字符 [英] Encrypt/Compress string into character

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

问题描述


我有一个要加密为单个字符的字符串,我也想将该单个字符解密为它的原始字符串.是否有任何算法可以完成此任务,或者有任何方法可以执行此操作?

感谢

Hi,
I have a string which I want to encrypt into a single character, and I also want to decrypt that single character into it''s original string. Is there any algorithm to achieve this task or is there any way to perform this operation?

Thanks

推荐答案

有损压缩是否可以接受? :laugh:
Is lossy compression acceptable? :laugh:


通常说不:您不能在一个集合和另一个元素较少的集合之间建立双向关系.
:)
Generally speaking no: you cannot establish a biunivocal relation between a set and another one having less elements.
:)


这篇关于将字符串加密/压缩为字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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