Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I came across this error in trying to use encrypt with the BLOWFISH alg using a static key of something like:
<cfset thekey = "mysecretkey"> - this does not work.
<cfset thekey = "mysecretkey2010s"> - this works at a length of 16 characters. Anything less than 16 did not work. Neither did 17, 18, or 19. 20 did.
Hope this is helpful to some in the future.
Copy link to clipboard
Copied
I'm fairly certain that "theKey" is interpreted as a base-64 encoded binary value and that is why it must have a length evenly divisable by 4.