0

Looking at the documentation here, I can't seem to find any information about the default padding scheme.

Edit: In case it's not clear, I'm asking about C#.

Carson McManus
  • 314
  • 5
  • 10
  • What ever you want!!! The default padding in JAVA and c# are different. Either can be used but you must use the same padding mode to encrypt and decrypt. – jdweng Mar 24 '21 at 21:22
  • I'm not asking about what I should use, I'm asking about the default when nothing is specified. – Carson McManus Mar 24 '21 at 23:44
  • It depends on application. As I said Java and c# default to different modes. – jdweng Mar 25 '21 at 00:00
  • As per the tags, and linked documentation, I'm asking about C#. – Carson McManus Mar 25 '21 at 00:34
  • You never said c#. See answer at following posting : https://stackoverflow.com/questions/12543933/bad-padding-exception-in-java-rsa-decryption/12546032 – jdweng Mar 25 '21 at 00:42
  • There is no default padding scheme. You must specify the padding to use in the `Encrypt` and `Decrypt` call. – Jack A. Mar 25 '21 at 18:13
  • If that's the case then where is the padding being set for this code? https://github.com/geel9/SteamAuth/blob/96ca6af3eb03d1a45f7fbff78851f055ba47c0d4/SteamAuth/UserLogin.cs#L77-L85 Am I missing something painfully obvious? – Carson McManus Mar 26 '21 at 00:43

0 Answers0