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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With