Deprected PcCryptoProvider

The current PcCryptoProvider uses a lot of deprected API functions so I have them replaced by non-deprected functions.