31

I need to do some cryptography based work, and I have found out Bouncy Castle API which is both available for C# and Java, for Java it has documentation, but it has no documentation for C#.

Can anyone provide me some resources from where I can get idea for using Bouncy Castle with C#?

bmm6o
  • 6,187
  • 3
  • 28
  • 55
habibalsaki
  • 1,082
  • 4
  • 13
  • 25

2 Answers2

18

I also couldn't find any C#-documentation for Bouncy Castle API. Seems, like it doesn't exist.

But you can go this way. Download library sources, and look at them a little. Code actually looks like Java-code, but it has minimal differences:

  1. Some base classes moved to interfaces
  2. All the methods and properties are named in 'UpperCamelCase'

Therefore you can freely use Java-documentation. And finally, some example for it usage in C#.

Also, want to add, answer for this question really helps me in one time.

Community
  • 1
  • 1
Shad
  • 4,423
  • 3
  • 36
  • 37
1

I found some getting started document for the FIPS compliant C# version on the bouncyCastle website which helped a bit, but seems to not to be up to date - according to Joe Huang.

However, I did some toy application during a university assignment. Might help others seeking for some examples.

I can also recommend looking into the tests of the bouncyCastle source code to get a better understanding of the API.

Smittie
  • 489
  • 6
  • 11