984
Views
15
Comments
Solved
[CryptoAPI] How to use CryptoAPI?
Question
cryptoapi
Service icon
Forge asset by João Barata

Hey guys, I need a help. How can i use the DecryptoAPI?

I just installed they in my service studio but i didint understand anything how to use this. Someone can help me?

One simple exemple: Id like to cat a string typed in my imput then insert into database encrypted then id decrypt they to the user can to see.


2021-06-09 13-39-18
Agno Silveira
 
MVP
Solution

Hi Wallace,

See the example .OML in attachment.

It is an example similar to what Unnati wrote.

Hope this helps.

Regards.

Teste.oml
2024-03-15 16-39-59
Wallace Pimenta

Ok, thank you, I will download it. This exemple decript the data early encrypted saved on the database?

2021-06-09 13-39-18
Agno Silveira
 
MVP
2024-06-19 07-19-32
JitendraYadav

Hi Wallace Pimenta,

Have you used Try now option? if not, please try.

Thanks.


2020-11-20 07-43-04
Unnati Khanorkar

Hi Wallace,

I have added a sample to use the encryption and decryption using AES - 

1. Created sample components - 

2. Added screen action to encrypt the "Data to encrypt" - 

You can use any number of bits like 128,256,1024 etc.

3. Output 

Please let me know if this helps.

Thanks,

Unnati

2024-03-15 16-39-59
Wallace Pimenta

I have installed this forge but how can I see this black icons? 

2020-12-04 11-01-48
Francisco Simão

Hi Wallace,

You need to refresh and apply dependencies (Crypto API) and you can found the black icons on logic tab.


 

2020-11-20 07-43-04
Unnati Khanorkar

Click on the plug icon on the left hand side corner to add dependency into your module - 

 

You will get popup - 



Click on CryptoAPI and add all the dependencies.

Then you can use the server action. You just have to drag and drop the Run Server Action into your work flow and then you should be able to use this.

Thanks,

Unnati.

2024-03-15 16-39-59
Wallace Pimenta
2024-03-15 16-39-59
Wallace Pimenta

Thank you so much for your suport Unnati Khanorkar, you help me a lot! I d like too decrypt the data was saved into data base. How can I do it?




2020-11-20 07-43-04
Unnati Khanorkar

You can use the same server actions if you have saved the data by encrypting using crypto api and the generated Key.

2024-03-15 16-39-59
Wallace Pimenta

AES Read Key then AES Decrypt?

Could u give me a exemple ?

2020-11-20 07-43-04
Unnati Khanorkar

Hi Wallace,

You can follow the below steps - 

1. Generate the key and save that key into DB before encrypting the data.

2. Save the encrypted data into DB using the key generated in first step.

3. Fetch the key from DB to decrypt the data again. 


Thanks,

Unnati 

2021-06-09 13-39-18
Agno Silveira
 
MVP
Solution

Hi Wallace,

See the example .OML in attachment.

It is an example similar to what Unnati wrote.

Hope this helps.

Regards.

Teste.oml
2024-03-15 16-39-59
Wallace Pimenta

Ok, thank you, I will download it. This exemple decript the data early encrypted saved on the database?

2021-06-09 13-39-18
Agno Silveira
 
MVP
2024-03-15 16-39-59
Wallace Pimenta

I would like to thank Agnos and Unnati.  If there was a way to provide a solution for both of them, I would do it, in this case I will give it to Agnos because the video he made for me was a game changer.  thank you all.

2022-07-30 06-06-25
https://codono.com/

Click on CryptoAPI and add all the dependencies. Then you can use the server action....

Generate the key and save that key into DB before encrypting the data.Save the encrypted data into DB using the key generated in first step.Fetch the key from DB to decrypt the data again.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.