Git Product home page Git Product logo

effortless-.net-encryption's Introduction

effortless-.net-encryption's People

Contributors

sjh37 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

effortless-.net-encryption's Issues

Cannot install 4.0.0 in a .NET 4.8 project

Trying to update 3.3.0 to 4.0.0 in a .NET 4.8 project gives the error:

Could not install package 'Effortless.Net.Encryption 4.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Bug: .Net Core 2.2 - Mac OSX

Unhandled Exception: System.PlatformNotSupportedException: BlockSize must be 128 in this implementation.
at System.Security.Cryptography.RijndaelManaged.set_BlockSize(Int32 value)
at Effortless.Net.Encryption.Bytes.GetRijndaelManaged(Byte[] key, Byte[] iv)
at Effortless.Net.Encryption.Bytes.GenerateIV()

256 blocksize is not supported on Mac OSX

Hashing in multithreading environment fails

Instance of SHA512 class is not thread safe - try following code

var hashAlgorithm = SHA512.Create();

var text = "Hello world";
var bytes = Encoding.Default.GetBytes(text);

var hashes = new ConcurrentDictionary<string, string>();

Parallel.For(0, 1000, ignored =>
{
    var hashed = hashAlgorithm.ComputeHash(bytes);
    var base64 = Convert.ToBase64String(hashed);
    hashes.TryAdd(base64, base64);
});

foreach (var hash in hashes.Values)
{
    Console.WriteLine(hash);
}

Because instance of hashAlgorithm is static member of Hash class, in multhithreading scenario different hashes are generated for the same input

Did not handle one Norwegian letter correctly

Hi! Thank you for a great class!
Simple quick and it has been working fine for me.

One user though responded that his name had changed from "Øystein" to "Oystein", and when I tested it it translated "Øø" to "Oo" in the Strings.Decrypt function.

Other special norwegian letters like ÆÅ or æå works just fine 👍

Is this a known issue? If not any suggestion to work around it?

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.