Hello everyone, I hope you are well!
I have a requirement to present a Web View in my React application.
However, the external system expects to receive the encrypted username.
The client has a Java code that it developed itself that performs the encryption and decryption of that username.
Can anyone tell me if I can use this Java code in my application?
Hi Enio Ferreira,
please check this link. currently GCM doesn't have it in OS.
https://www.outsystems.com/forge/component-overview/437/cryptoapi
https://www.outsystems.com/forums/discussion/76974/is-there-any-component-which-supports-aes-gcm-nopadding-encryption/
thanks,
Ramesh
Thks Ramesh, how can i solved this question? Is the fisrt question and i don't the button to solve.
You seem to have 2 OutSystems accounts (assuming the below two accounts are yours.
Only with the account you created the question, you are able to mark a reply as solution:
Don't use both accounts in one conversation, it is confusing, apparently even for you ;)
Hi Daniel,
That is correct. I made a mistake.
Thank you.
Hi,
Do you know which encryption method is used to encrypt the username, please share if you know. Maybe it's and encryption method for which OutSystems also has a decrypt action available.
Regards,
Daniel
Hi Enio,
This javacode of the client, did it have an API/rest/soap webservice to use to encryption and decryption? Than you could use it in your OS application.
OutSystems no longer directly supports Java. The Java backend is no longer available in the latest version of the Platform, version 11. The last version supporting Java was version 10, but this version 11 is no longer supported with Reactive.
Even if Java were supported, using existing code as-is in OutSystems wouldn't be possible. OutSystems generates Java (up to version 10) or .NET code from the OutSystems visual code. It is possible to include external code if it's in libraries through creating an Extension, but this is not encouraged and would still be quite some work if you have a lot of existing code.
Can you create a Visual Studio (.net/c# ) library / extension with that encryption and decryption code to use in OutSystems?
Best Regards
There is no way to use Java. did you have a web service in Java that can use.
Thanks,
Hello Everyone.
I'm sharing a piece of Java code.
Does anyone know if outsystems already has a component to encrypt and decapitate?
private static final String SECRET = "5A33ABAE2EDA0B00FC8C85436B8A020C2CC6E82A9465C7497CC70492D9EF9561A88AA580D010D548BA4F6AA5A1C6B3D7AFC38A245E57278AEADEA3C575124548
ENCRYPT_ALGO = "AES/GCM/NoPadding";
final static private int TAG_LENGTH_BIT = 128; // must be one of {128, 120, 112, 104, 96}
private static final int IV_LENGTH_BYTE = 12
final static private int SALT_LENGTH_BYTE = 16;
final public static int ITERATION_COUNT = 65536
public static final int KEY_LENGTH_LENGTH = 256;
public static final String ALGORITHM = "AES;
These are available Crypto API's in the OutSystems Forge:
https://www.outsystems.com/forge/list?q=AES&t=&o=most-popular&tr=False&oss=False&c=%20&a=&v=&hd=False&tn=&scat=forge