Skip to content

Commit

Permalink
Merge pull request #1 from AndreyRusyaev/feature/renovation
Browse files Browse the repository at this point in the history
Library modernization: Migrate to .Net Core, Add benchmarks, tests.
  • Loading branch information
AndreyRusyaev authored Sep 1, 2021
2 parents f8a046b + 361b247 commit 2f08df5
Show file tree
Hide file tree
Showing 99 changed files with 5,879 additions and 2,179 deletions.
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,42 @@
# acryptohashnet
Implementation of well-known cryptographic hash functions for .Net Framework.

This code was written between 2006-2009 as an open source project. It was hosted originally on: https://sourceforge.net/projects/acryptohashnet/
Originally project was developed between 2006-2009 as an open source project and hosted originally on: https://sourceforge.net/projects/acryptohashnet/

# MD Family
All functions designed and specified by [Ron Rivest](https://en.wikipedia.org/wiki/Ron_Rivest).
* MD2, specification: [RFC 1319](docs/rfc1319.txt).
* MD4, specification: [RFC 1320](docs/rfc1320.txt). Designed by [Ron Rivest](https://en.wikipedia.org/wiki/Ron_Rivest).
* MD5, specification: [RFC 1321](docs/rfc1320.txt). Designed by [Ron Rivest](https://en.wikipedia.org/wiki/Ron_Rivest).

# SHA Family
Secure Hash Standard [[pdf]](docs/fips180-3_final.pdf)

Published as standard by "National Institute of Standards and Technology".

* SHA-0,
* SHA-1,
* SHA-256,
* SHA-384,
* SHA-512

# RIPEMD
RIPEMD-160: A Strengthened Version of RIPEMD [[pdf]](docs/AB-9601.pdf)

Designed by Hans Dobbertin, Antoon Bosselaers, [Bart Preneel](https://en.wikipedia.org/wiki/Bart_Preneel)

# Haval
HAVAL — A One-Way Hashing Algorithm with Variable Length of Output [[pdf]](docs/haval-paper.pdf)

Designed by Yuliang Zheng, Josef Pieprzyk and Jennifer Seberry.

# Snefru
A Fast Software One-Way Hash Function [[pdf]](docs/Merkle1990_Article_AFastSoftwareOne-wayHashFuncti.pdf)

Designed and specified by Ralph C. Merkle.

# Tiger
Tiger: A Fast New Hash Function [[ps]](docs/tiger.ps) [[pdf]](docs/tiger.pdf)

Designed and specified by Ross Anderson and Eli Biham.

9 changes: 6 additions & 3 deletions build/build.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
set BinDir=../../bin
set SourcesDir=../src
msbuild "../src/acryptohashnet.sln" /p:Configuration=Release

msbuild "%SourcesDir%/acryptohashnet.sln" /p:OutDir="%BinDir%/"
SET OutDir=../src/acryptohashnet/bin/Release/
SET TargetDir=../bin/

xcopy /I /Y /F "%OutDir%netstandard2.1/" "%TargetDir%"
xcopy /I /Y /F "%OutDir%*.nupkg" "%TargetDir%"
13 changes: 10 additions & 3 deletions build/build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
$BinDir = "../../bin";
$SourcesDir = "../src";
Set-StrictMode -version Latest

msbuild.exe "$SourcesDir/acryptohashnet.sln" /p:OutDir="$BinDir/"
$SrcDir = "$PSScriptRoot/../src";
$OutDir = "$PSScriptRoot/../src/acryptohashnet/bin/Release"
$TargetDir = "$PSScriptRoot/../bin"

msbuild.exe "$SrcDir/acryptohashnet.sln" /p:Configuration=Release

New-Item -Force -Type Directory $TargetDir
Copy-Item -Force "$OutDir/netstandard2.1/*" $TargetDir
Copy-Item -Force "$OutDir/*.nupkg" $TargetDir
Binary file added docs/AB-9601.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/fips180-3_final.pdf
Binary file not shown.
Binary file added docs/haval-paper.pdf
Binary file not shown.
Loading

0 comments on commit 2f08df5

Please sign in to comment.