https://github.com/sshnet/cryptography
Cryptography algorithms
https://github.com/sshnet/cryptography
Last synced: 7 months ago
JSON representation
Cryptography algorithms
- Host: GitHub
- URL: https://github.com/sshnet/cryptography
- Owner: sshnet
- License: mit
- Created: 2016-03-12T13:17:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T00:59:21.000Z (almost 3 years ago)
- Last Synced: 2025-06-20T07:31:58.095Z (7 months ago)
- Language: C#
- Size: 743 KB
- Stars: 21
- Watchers: 3
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#SshNet.Security.Cryptography#
[](https://www.nuget.org/packages/SshNet.Security.Cryptography)
[](https://ci.appveyor.com/project/drieseng/cryptography/branch/master)
##Introduction##
This project groups some crypto classes that were previously part of **SSH.NET**, and makes them available for a broad set of target frameworks.
##Hash algorithms##
**SshNet.Security.Cryptography** features the following hash functions:
* md5
* sha1
* sha2-256
* sha2-384
* sha2-512
* ripemd160
##Message Authentication Code##
**SshNet.Security.Cryptography** includes the following MAC algorithms:
* hmac-md5
* hmac-sha1
* hmac-sha2-256
* hmac-sha2-384
* hmac-sha2-512
* hmac-ripemd160
##Framework Support##
**SshNet.Security.Cryptography** is available for the following target frameworks:
Target Framework Moniker | Frameworks
:------------------------ | :---------------------------------------------------
net20 | .NET Framework 2.0
net40 | .NET Framework 4.0
net45 | .NET Framework 4.5
netstandard1.0 | .NET Platform Standard 1.0
netstandard1.3 | .NET Platform Standard 1.3
portable-net45+win8+wpa81 | .NET Framework 4.5
Windows 8
Windows Phone 8.1
sl4 | Silverlight 4
sl5 | Silverlight 5
uap10.0 | Universal Windows Platform 10
wp71 | Windows Phone Silverlight 7.1
wp8 | Windows Phone Silverlight 8.0
In our codebase, we use the following conditional compilation symbols to identity features supported by a given target framework:
Symbol | Description
:----------------------------| :--------------------------------------------------------------------------------
FEATURE_CRYPTO_HASHALGORITHM | [HashAlgorithm](https://msdn.microsoft.com/en-us/library/system.security.cryptography.hashalgorithm.aspx) and [KeyedHashAlgorithm](https://msdn.microsoft.com/en-us/library/system.security.cryptography.keyedhashalgorithm.aspx) classes are available
##Build##
The following software is required to build **SshNet.Security.Cryptography** in all its supported flavors:
Software | net35 | net40 | net45 | netstandard1.0 | netstandard1.3 | portable-net45+win8+wpa81 | sl4 | sl5 | uap10.0 | wp71 | wp8 |
--------------------------------- | :---: | :---: | :---: | :------------: | :------------: | :-----------------------: | :-: | :-: | :-----: | :--: | :-: |
Windows Phone SDK 8.0 | | | | | | x | x | x | | x | x |
Visual Studio 2012 Update 5 | x | x | | | | | x | x | | x | x |
Visual Studio 2015 Update 3 | x | x | x | x | x | x | | x | x | | x |
.NET Core 1.0 Visual Studio Tools | | | | x | x | | | | | | |
**Note:**
Where possible, we use the **Shared Project** concept - which was introduced in **Visual Studio 2015** - to share code between *flavors* of **SshNet.Security.Cryptography**.
To avoid maintaining two sets of project files, these projects can only be built in **Visual Studio 2015** (or higher).