OK, I am hardly an expert on encryption, so please forgive my ignorance.

I want to encrypt/decrypt a String like password etc.
In my Swing application I 
use org.jasypt.encryption.pbe.StandardPBEStringEncryptor

Ideally I would like to use a compatible cypher in codename1.
- Algorithm: PBEWithMD5AndDES.
- Key obtention iterations: 1000.
   
   1. Create an instance (using new).
   2. Set a password (using setPassword(String) 
   
<http://www.jasypt.org/api/jasypt/1.8/org/jasypt/util/text/BasicTextEncryptor.html#setPassword(java.lang.String)>*
 
   or *setPasswordCharArray(char[]) 
   
<http://www.jasypt.org/api/jasypt/1.8/org/jasypt/util/text/BasicTextEncryptor.html#setPasswordCharArray(char[])>
   *).*
   3. Perform the desired encrypt(String) 
   
<http://www.jasypt.org/api/jasypt/1.8/org/jasypt/util/text/BasicTextEncryptor.html#encrypt(java.lang.String)>*
 
   or *decrypt(String) 
   
<http://www.jasypt.org/api/jasypt/1.8/org/jasypt/util/text/BasicTextEncryptor.html#decrypt(java.lang.String)>*
 
   operations.*

- The required steps to use it are:  
http://www.jasypt.org/api/jasypt/1.8/org/jasypt/util/text/BasicTextEncryptor.html

Can you point me in the direction of full examples of implementing this?

Regards


On Tuesday, August 29, 2017 at 11:35:41 PM UTC-4, Shai Almog wrote:

> It's related to storage in Storage. Bouncy castle has a HUGE API for 
> encryption of various types so this is a bit vague. You need to be more 
> specific on the encryption type.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/238c2f64-976c-49ea-a4d4-d41c6e936da0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to