decryptWorkbook function
Decrypts a BCellWorkbookCrypto.toEncryptedBytes blob into a new
BCellWorkbook. Throws a FormatException when bytes is not an
encrypted-workbook blob (wrong magic/version, truncated) and a
BCellDecryptException when the password is wrong or the blob was
tampered with.
Implementation
BCellWorkbook decryptWorkbook(List<int> bytes, String password) =>
BCellWorkbook.fromJson(_decryptToJson(bytes, password));