Skip to content

1.0.13.1 Release

Compare
Choose a tag to compare
@charlesportwoodii charlesportwoodii released this 19 Jul 18:08
· 19 commits to master since this release
1.0.13.1

1.0.13.1 Release

libsodium-uwp is a Universal Windows Runtime Component that exposes the libsodium library to both desktop and mobile universal windows applications.

AppVeyor is currently experiencing an outage preventing tests to pass. This package will be held in draft mode, and not pushed to Nuget until the tests pass.

What's New?

  • Bumped libsodium library to 1.0.13
  • Introduced PasswordHash::Argon2id for hashing with PasswordHash.
  • PasswordHash::HashArgon2i now accepts a third argument, algorithm. PasswordHash::Argon2i or PasswordHash::Argon2id. PasswordHash::Argon2i is the default arguement
public static String Sodium.PasswordHash.Hash(String password, PasswordHashOptions options, int algorithm)

Internally this method will use either crypto_pwhash_argon2i_str, or crypto_pwhash_argon2id_str, depending on the algorithm, instead of strictly relying on crypto_pwhash_str.

Installation

  1. Install from Nuget

    Install-Package libsodium-uwp
    
  2. Add the following to your Package.appxmanifest file.

        <Extensions>
        <Extension Category="windows.activatableClass.inProcessServer">
            <InProcessServer>
                <Path>libsodium-uwp.dll</Path>
                <ActivatableClass ActivatableClassId="Sodium.Core" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.CryptoHash" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.GenericHash" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.GenericHashAlgorithmProvider" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.GenericHashAlgorithmNames" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.KDF" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.KeyPair" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.OneTimeAuth" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.PasswordHash" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.PublicKeyAuth" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.PublicKeyBox" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.ScalarMult" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.SealedPublicKeyBox" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.SecretBox" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.SecretKeyAuth" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.SecretAead" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.ShortHash" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.StreamEncryption" ThreadingModel="both" />
                <ActivatableClass ActivatableClassId="Sodium.Utilities" ThreadingModel="both" />
            </InProcessServer>
        </Extension>
    </Extensions>

Package Verification

The following hashes are made available so you can verify the authenticity of this package both on Github and Nuget.

md5: a92de79774c61f648b2af0ac1fc043db  libsodium-uwp.1.0.131.nupkg
md5: 2d4964d66a0902c2a81ed2640e2beeac  libsodium-uwp.1.0.131.symbols.nupkg
sha1: 4c3d6bbce420cd671c6b3bf2600ef4204818fb49  libsodium-uwp.1.0.131.nupkg
sha1: 95c26a2f031cf5c77bc6e19b3f14a881061bb8ff  libsodium-uwp.1.0.131.symbols.nupkg
sha256: c759e8df1cd4e92ea246eec6489c3ccff70cfd76797d91095854fa52267f494e  libsodium-uwp.1.0.131.nupkg
sha256: 36977ae37562fa88205418f5bd43418e8dc817aeba1bedc612b105eae5c98d37  libsodium-uwp.1.0.131.symbols.nupkg

The Nuget package is also signed so you can verify the authenticity of this package.