开发者

Encryption and decryption purely

开发者 https://www.devze.com 2023-02-24 01:53 出处:网络
I have a string of length 64 characters, I have to convert that into string of length 16 characters. Can you please guide me through the encryption method which encrypts the string of64 characters int

I have a string of length 64 characters, I have to convert that into string of length 16 characters. Can you please guide me through the encryption method which encrypts the string of 64 characters into string of 16 characters and also when I decrypt the 16 characters string, I need to get the 64 characters strin开发者_Python百科g back.


You can't.

Generally, you can't put 64 bytes (or characters) of information into 16 bytes (or characters) without losing some data.

You can try to compress it and if you're lucky the data compresses to 16 bytes or less, but that depends on the input and will definitely not work on all input.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号