Linked Questions
138 questions linked to/from Java 256-bit AES Password-Based Encryption
39
votes
7
answers
278k
views
How to encrypt and decrypt String with my passphrase in Java (Pc not mobile platform)? [duplicate]
I want to encrypt a string and then put it on a file. Also want to decrypt it when I want. I don’t need very strong security. I just want to make it harder to get my data others.
I tried several ...
14
votes
1
answer
55k
views
How to encrypt a file in java using AES [duplicate]
I need to know how to create an AES and using it to encrypt and decrypt a file in java.
-2
votes
2
answers
5k
views
how to change numbers of secret key for AES 128 [duplicate]
i found a source for android encryption..its using AES 128 Bit encryption..but the number of secret key is fix to 16character..can anyone tell me how to change the number secret key as our wish..i don'...
119
votes
10
answers
487k
views
Initial bytes incorrect after Java AES/CBC decryption
What's wrong with the following example?
The problem is that the first part of the decrypted string is nonsense. However, the rest is fine, I get...
Result: `£eB6O�geS��i are you? Have a nice day.
@...
109
votes
10
answers
214k
views
Image encryption/decryption using AES256 symmetric block ciphers [closed]
Is there any good example of how to encrypt and decrypt image and other files with AES on Android?
89
votes
6
answers
51k
views
How can I protect MySQL username and password from decompiling?
Java .class files can be decompiled fairly easily. How can I protect my database if I have to use the login data in the code?
65
votes
6
answers
95k
views
InvalidKeyException Illegal key size
I have a test which runs great on my development MacBook Pro, but fails to run in continuous integration TeamCity server.
The error is following:
java.security.InvalidKeyException: Illegal key size
...
40
votes
6
answers
95k
views
How to hot-reload properties in Java EE and Spring Boot?
Many in-house solutions come to mind. Like having the properties in a database and poll it every N secs. Then also check the timestamp modification for a .properties file and reload it.
But I was ...
15
votes
6
answers
35k
views
Encryption using AES-128 in Android and IPhone (Different result)
I am trying to encrypt some text using the AES algorithm on both the Android and IPhone platforms. My problem is, even using the same encryption/decryption algorithm (AES-128) and same fixed variables ...
34
votes
3
answers
64k
views
Java - How to store password used in application? [duplicate]
I'm developing an application which read some data from a db.
The connection to the db is performed through standard login/password mechanism.
The problem is: how to store the db password?
If I store ...
10
votes
5
answers
47k
views
Encryption with AES-256 and the Initialization Vector
I have a question relating to the use of an Initialization Vector in AES encryption. I am referencing the following articles / posts to build encryption into my program:
[1] Java 256-bit AES ...
14
votes
4
answers
48k
views
Generate Key from string?
I need to generate a Key from a string, such that I can always create the same key from the same string. (Specifically a Key object, so that I can use it to create a Cipher in turn to create a ...
27
votes
4
answers
38k
views
Android encryption
I am working on an android application, and I need to use encryption for one aspect of it. I am really indifferent to which algorithm I use (AES, DES, RSA, etc...). I am aware that Java has a crypto ...
14
votes
4
answers
48k
views
Java AES Encryption with salt
Alright, turns out I suck at Encryption/Decryption. I just dont get it.
How can I make Java encrypt String message1 = "hello world"; with String salt = "mySalt"; using AES encryption? also how can I ...
9
votes
4
answers
5k
views
Is there an AES library for clojure?
Is there an AES encryption library for clojure? should I use a java libray available through maven or clojars? Thank your for your time and consideration.