ClosedBit error docs

CB_ERR_ENCRYPT_KEY

Encrypt key problem. The encrypt command did not receive a generated key, key file, or valid 256-character key.

Why it happens

The encrypt command did not receive a generated key, key file, or valid 256-character key.

How to fix it

Let Studio generate the key or pass a valid key_file path from the Console.

Copy-paste fix pattern
encrypt key_file keys/project.key
If the IDE reports a line number, fix that line first, then scan the previous line for an unclosed string, bracket, or block.