Cryptographic libraries for SAP HANA XS engine
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.
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.