Expected behaviour
No error, and an attempt to decrypt/encrypt the input
Additional context
I looked at the code and it only checks for length 8 bytes
if (key.length !== 8) {
throw new OperationError(`Invalid key length: ${key.length} bytes
DES uses a key length of 8 bytes (64 bits).
Triple DES uses a key length of 24 bytes (192 bits).`);
}
Describe the bug Trying to use a triple-length key I get the error: Invalid key length: 24 bytes
DES uses a key length of 8 bytes (64 bits). Triple DES uses a key length of 24 bytes (192 bits).
To Reproduce Link to recipe
Expected behaviour No error, and an attempt to decrypt/encrypt the input
Additional context I looked at the code and it only checks for length 8 bytes