SAP App Build: encrypt and decrypt a file

Hei folks,

I am building a web app, it needs the file encryption/decryption feature. And I am here to fetch some ideas that you share.

Simply put – what I want:

– Generate a AES-256 bit key, or user uploads his own AES-256 key

– Encrypt certain files using user key before further processing.

– Decrypt the file and recover the original when needed

I used the script attached, but it fails with error:

 

Error generating or exporting the AES-GCM key: TypeError: Cannot read properties of null (reading ‘crypto’)

 

Apparently the window.crypto object is not supported, or not available.

I checked the Formula Cryptography features, but they talk about calculating hash from a given text. Which does not solve my purpose.

Can anyone shed light on this?

Scroll to Top