Skip to content

Commit

Permalink
Merge pull request #6 from palantir/feature/rsa-padding
Browse files Browse the repository at this point in the history
use padding with RSA
  • Loading branch information
markelliot committed Dec 18, 2015
2 parents a1a5dc5 + 01f22fb commit 28e5603
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public final class RsaAlgorithm implements Algorithm {

private Cipher getUninitializedCipher() throws NoSuchAlgorithmException,
NoSuchPaddingException, NoSuchProviderException {
return Cipher.getInstance(ALGORITHM_TYPE);
return Cipher.getInstance("RSA/ECB/OAEPWithSHA-256AndMGF1Padding");
}

@Override
Expand Down

0 comments on commit 28e5603

Please sign in to comment.