[Cryptography] Password and Other Encryption
Paul F Fraser
paulf at a2zliving.com
Thu Jan 4 17:23:45 EST 2018
Hi,
I am considering using Encryptor4j https://github.com/martinwithaar/Encryptor4j for general
encryption purposes in my project.
It has this class
public class AESEncryptorFactory implements EncryptorFactory {
@Override
public final Encryptor messageEncryptor(Key key) {
return new Encryptor(key, "AES/CBC/PKCS5Padding", 16);
}
@Override
public final Encryptor streamEncryptor(Key key) {
return new Encryptor(key, "AES/CTR/NoPadding", 16);
}
}
where the 16 is the ivLength.
Is the algorithm shown in messageEncryptor suitable for password encryption?
Is the algorithm shown in streamEncryptor suitable?
Is anyone familiar with Encryptor4j and have any comments?
Researching this subject reveals an enormous range of opinion and it seems to change every day.
So, as it is always recommended to rely on the experts, here I am at your mercy.
Paul Fraser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.metzdowd.com/pipermail/cryptography/attachments/20180105/d604424f/attachment.html>
More information about the cryptography
mailing list