TheAlphaSchoolSystemPTYLTD / api-introduction

A basic introduction to the TASS API's.
16 stars 10 forks source link

ECB Encryption #20

Open JSheeranMM opened 1 week ago

JSheeranMM commented 1 week ago

I'm currently attempting to script API calls to TASS from a FileMaker database, and I'm finding it difficult to work with AES ECB encryption.

FileMaker does not have script steps for encryption with ECB. It can run JavaScript, but not using Node.js, so the provided JavaScript is no good. I've given writing a JavaScript using Web Crypto API steps instead, but on closer inspection it looks like that doesn't support ECB either.

Is ECB the only supported encryption for TASS or is one of the other algorithms also supported? It's the only encryption I can see used in the provided scripts.

Is there some other obvious solution I'm missing?

JSheeranMM commented 1 week ago

I now have this working using the depreciated CryptoJS JavaScript library. I would still like to know if there is an alternative to ECB at it's not ideal.