Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
enric101
Active Contributor
Hello everyone,

After a period of inactivity, I bring you a couple of very useful libraries for SAP HANA XS engine.

One of our applications requires that certain information is transmitted securely between SAP UI5 and SAP cloud platform through SHA256 and AES.

 

In the following link we can see find an example importable project https://github.com/enric11/SAPXSHanaCryptographic

You can import the project and execute the file test.xsjs

 

As a summary:

- AES will allow us to encrypt texts or objects by private key so that we can transmit information. This information may be encrypted or decrypted.

*https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
var input = "Hello!";

/* encrypt */
var encript = aesCrypt.encrypt(input,"SecretKey",256);

/* decrypt */
aesCrypt.decrypt(encript,"SecretKey",256);

 

- SHA256 is a very useful encryption to save information as passwords, this information can only be encrypted with what is very useful to verify if a chain of strings is valid or not.

*https://es.wikipedia.org/wiki/SHA-2
SHA256.SHA256("SomeInput");

 

Best regards
1 Comment
Labels in this area