PCL Crypto provides a consistent, portable set of crypto APIs for .NET, Windows Phone 8.0 & 8.1, Windows Store, Xamarin.iOS, Xamarin.Android, and Silverlight.
This makes it easier to create cross-platform .NET libraries and apps.
Crypto functionality includes asymmetric and symmetric encryption and signatures, and key derivation.
PCLCrypto calls into each native platform's crypto API for maximum performance. For RSA operations this produces a 2-100X improvement in performance on Android and iOS over using the standard RSACryptoServiceProvider API.

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 2.8.3 or higher.

Install-Package PCLCrypto -Version
dotnet add package PCLCrypto --version
<PackageReference Include="PCLCrypto" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PCLCrypto --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PCLCrypto,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PCLCrypto as a Cake Addin
#addin nuget:?package=PCLCrypto&version=

// Install PCLCrypto as a Cake Tool
#tool nuget:?package=PCLCrypto&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Merged PclCrypto.Abstractions.dll into PclCrypto.dll.

NuGet packages (67)

Showing the top 5 NuGet packages that depend on PCLCrypto:

Package Downloads
This library provides features for creating Windows and Xamarin mobile apps that connect to Azure Mobile Apps. Azure Mobile Apps allows you to develop an app with a scalable backed hosted in Azure App Service, with support for mobile authentication, offline sync, and push notifications. To learn more about Azure Mobile, go to http://azure.microsoft.com/mobile.
My package description.
Non-standard Extensions (utilities) to Xamarin-Auth (refresh-token)
A cross platform (Android, IOS and Windows) reusable library. Functionality include Cryptography Algorithms, Json (De)Serialization, Csv Exporter, Dynamic SQL Builder, Logging Interface, Reflection extensions and so on.
Portable Javascript Object Signing and Encryption (JOSE) and JSON Web Token (JWT) implementation for Windows 8, Windows Phone 8, Windows Silverlight 8 and .NET framework platforms based on PCLCrypto portable crypto layer Supported algorithms Signing: - HMAC signatures with HS256, HS384 and HS512. - RSASSA-PKCS1-V1_5 signatures with RS256, RS384 and RS512. - NONE (unprotected) plain text algorithm without integrity protection

GitHub repositories (20)

Showing the top 5 popular GitHub repositories that depend on PCLCrypto:

Repository Stars
Sample apps built using the Xamarin.Forms framework
The mobile app vault (iOS and Android).
Plugins for Xamarin
The official AWS SDK for .NET. For more information on the AWS SDK for .NET, see our web site:

Version History

Version Downloads Last updated
2.1.40-alpha 7,049 8/18/2020
2.1.32-alpha 142,919 10/5/2018
2.1.27-alpha 44,419 6/19/2018
2.1.17-alpha-g5b1e8dff8c 13,952 3/10/2018
2.0.147 2,897,699 4/2/2016
2.0.145 5,392 3/30/2016
2.0.144 1,298 3/26/2016
2.0.140 6,149 3/21/2016
2.0.131-rc 702 3/19/2016
2.0.125-rc 642 3/17/2016
1.1.86-beta 1,912 11/14/2015
1.0.86 191,765 11/8/2015
1.0.82 1,465 11/5/2015
1.0.80 3,857 10/18/2015 316,371 5/11/2015 78,595 4/25/2015 14,358 3/13/2015
1.0.0-beta2 1,669 1/11/2015
1.0.0-beta1 783 1/3/2015 8,280 10/14/2014 12,594 6/14/2014 166,173 4/19/2014
0.4.1-beta 786 3/31/2014
0.4.0-beta 717 3/23/2014
0.3.1-beta 774 3/5/2014
0.3.0-beta 733 3/3/2014
0.2.0-beta 687 3/3/2014
0.1.1-alpha 736 3/1/2014
0.1.0-alpha 2,227 2/28/2014
Show less