With what is the key padded in cfusion_encrypt in c# alternative?

末鹿安然 提交于 2019-12-12 11:12:33

问题


I found an answer to replicate the cfusion_encrypt function in C# from here...

ColdFusion - cfusion_encrypt() and cfusion_decrypt() - C# alternative

But the answer doesn't say with what the key is padded with to make it the same length as the clear text? Can anyone suggest what the key is padded with? And whether it is padded to the right or left?


回答1:


This provides more clarity on what the function does.

cfusion_encrypt

The key is repeated a number of times until it is longer or equal to the length of the plain text.



来源:https://stackoverflow.com/questions/25781931/with-what-is-the-key-padded-in-cfusion-encrypt-in-c-sharp-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!