Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 292
Ewert Avatar asked Nov 01 '22 17:11

Ewert


1 Answers

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.

like image 200
Ewert Avatar answered Nov 15 '22 05:11

Ewert