c#替代中的cfusion_encrypt中填充的内容是什么? [英] With what is the key padded in cfusion_encrypt in c# alternative?

查看:133
本文介绍了c#替代中的cfusion_encrypt中填充的内容是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现一个答案从这里复制C#中的cfusion_encrypt函数...



ColdFusion - cfusion_encrypt()和cfusion_decrypt() - C#替代



但是答案并不是说用什么键填充,使其与明文相同的长度?任何人都可以提出填充密钥?而且它是否被填充到右边或左边?

解决方案

这提供了更加清晰的功能。

cfusion_encrypt



密钥重复多次,直到它长于或等于纯文本的长度。


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?

解决方案

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.

这篇关于c#替代中的cfusion_encrypt中填充的内容是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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