SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP App Build: encrypt and decrypt a file

Mijanur
Explorer
0 Kudos

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?

0 REPLIES 0