simbiose / Encryption

Encryption is a simple way to encrypt and decrypt strings on Android and Java project.
MIT License
354 stars 79 forks source link

Different Algorithms for SecretKey and Cipher #7

Open agrebnev opened 9 years ago

agrebnev commented 9 years ago

Hi @ademar111190

Please add possibility to specify different algorithms for SecretKey and Cipher.

ademar111190 commented 9 years ago

Yes it is in the plans, today change the algorithms is almost impossible but in next versions the goal is a good modularization to change easily the algorithms.

agrebnev commented 9 years ago

I suppose it is easy. Now you have setAlgorithm method. I offer to make one more like setCipherAlgorithm.

I would like to use "AES/CBC/PKCS5Padding" for Cipher and "AES" for Secret Key. Now it is impossible.