GithubHelp home page GithubHelp logo

a-luna / dotnetcore-crypto Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 126 KB

.NET Core 2.0 class library containing an implementation of SHA-3 hashing functions and file encryption methods which employ both AES and RSA algorithms to maximize data security and computational efficiency.

License: Other

C# 100.00%
sha3 sha3-224 sha3-256 sha3-384 sha3-512 dotnet-core dotnetcore dotnet-core2 cryptography csharp

dotnetcore-crypto's Introduction

dotnetcore-crypto

.NET Core 2.0 class library containing an implementation of SHA-3 hashing functions and file encryption methods which employ both AES and RSA algorithms to maximize data security and computational efficiency.

The SHA-3 implementation is taken from Sponge Constructions and SHA-3 Hashing Functions: A C# Implementation by phil.o and is licensed under the Code Project Open License 1.02.

I made several minor refactorings to the SpongeConstructions source code and created new projects for SpongeConstructions.Core and SpongeConstructions.Core.Tests which target .NET Core 2.0 (The libraries created by phil.o targeted .NET Framework 4.7).

PLEASE NOTE! The SHA-3 implementation is not optimized, the statement below is taken from the article explaining the implementation:

Actual implementation may not be optimized, as it needs the whole input data to be loaded into memory before running the hash function.

Performance-wise, for short inputs (order of a few thousand bits), a hashing operation resorts to a few milliseconds ... For larger ones, though, this may be an issue; for example, still in release mode, a SHA3-224 hashing of an input message of eight million bits (8Mb = 1MB) takes about 41 seconds on my computer. If you intend to perform SHA-3 hash operations on large files, there exists[^] a C implementation provided by KECCAK team itself, which may be more suitable. If you just intend to hash small inputs (like passwords), proposed C# implementation would suffice.

dotnetcore-crypto's People

Contributors

a-luna avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.