Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP App Build: encrypt and decrypt a file

Mijanur
Explorer
0 Kudos
446

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