有什么是在cfusion_encrypt在c#替代填充的关键? [英] With what is the key padded in cfusion_encrypt in c# alternative?

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

问题描述

我发现了一个答案,可以从这里复制c#中的cfusion_encrypt函数。

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

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

但是答案不是说什么键被填充以使其与明文相同的长度?任何人都可以建议什么键填充?

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.

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

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