43
Views
9
Comments
Solved
Java code for encrypt and decrypt in React Application
Question
Application Type
Reactive, Service
Service Studio Version
11.54.4 (Build 62290)
Platform Version
11.19.0 (Build 39069)

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?

UserImage.jpg
Enio

Thks Ramesh, how can i solved this question? Is the fisrt question and i don't the button to solve.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

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 ;)

UserImage.jpg
Enio


Hi Daniel,

That is correct. I made a mistake.

Thank you.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

2019-02-27 17-48-20
Caldeira81

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



2025-10-18 11-13-53
Ramesh subramanian

Hi Enio Ferreira,

There is no way to use Java. did you have a web service in Java that can use.

Thanks,

Ramesh

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

UserImage.jpg
Enio

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;

2025-10-18 11-13-53
Ramesh subramanian
Solution
UserImage.jpg
Enio

Thks Ramesh, how can i solved this question? Is the fisrt question and i don't the button to solve.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

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 ;)

UserImage.jpg
Enio


Hi Daniel,

That is correct. I made a mistake.

Thank you.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.