Remove Bouncy Castle as its not really needed.

Removed stuff related to BouncyCastle and replaced with stuff from other libraries already in use