libsodium.js | libsodium compiled to Webassembly and pure JavaScript, with convenient wrappers | Cryptography library

 by   jedisct1 HTML Version: 0.7.11 License: Non-SPDX

kandi X-RAY | libsodium.js Summary

kandi X-RAY | libsodium.js Summary

libsodium.js is a HTML library typically used in Security, Cryptography applications. libsodium.js has no bugs, it has no vulnerabilities and it has medium support. However libsodium.js has a Non-SPDX License. You can download it from GitHub.

The sodium crypto library compiled to WebAssembly and pure JavaScript using Emscripten, with automatically generated wrappers to make it easy to use in web applications. The complete library weighs 188 KB (minified, gzipped, includes pure JS + WebAssembly versions) and can run in a web browser as well as server-side.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              libsodium.js has a medium active ecosystem.
              It has 867 star(s) with 137 fork(s). There are 31 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 10 open issues and 226 have been closed. On average issues are closed in 174 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of libsodium.js is 0.7.11

            kandi-Quality Quality

              libsodium.js has no bugs reported.

            kandi-Security Security

              libsodium.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              libsodium.js has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              libsodium.js releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libsodium.js
            Get all kandi verified functions for this library.

            libsodium.js Key Features

            No Key Features are available at this moment for libsodium.js.

            libsodium.js Examples and Code Snippets

            Docker phoenix with ssl on port 443 is not receiving anything
            JavaScriptdot img1Lines of Code : 30dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            FROM elixir:1.10.1-alpine AS dev_img
            
            # Environment
            ENV MIX_ENV prod
            ENV PORT 4000
            ENV SSL_PORT 4001
            
            # Install required system dependencies
            RUN apk update; \
              apk upgrade --no-cache; \
              apk add --no-cache libsodium libsodium-dev nodejs 

            Community Discussions

            QUESTION

            Simple Javascript encryption using Libsodium.js in this sandbox demo
            Asked 2020-May-24 at 15:03

            I've spent an embarrasing number of hours trying to get Libsodium.js to work.

            See my fiddle demo (and code pasted below too).

            I keep getting Error: wrong secret key for the given ciphertext.

            What I would prefer is to replicate this PHP example of function simpleEncrypt($message, $key) into Libsodium.js.

            But as a starter, I'd be happy even getting the basic sample from the Libsodium.js repo to work.

            Any hints?

            Here is the code (also shown in the working fiddle):

            ...

            ANSWER

            Answered 2018-Aug-12 at 21:59

            QUESTION

            Using libsodium.js in a browser extension
            Asked 2018-Dec-18 at 15:21

            I am trying to use the libsodium.js library in an extension and so far have only tested in Chrome (currently version 71).

            It works perfectly so far in a standard web page context, but when I try to load it in an extension, I get an error. Whether it's loaded as a script, or if I define a page in the manifest with it as the only script and make the script async (literally identical to how it is in the browser page):

            ...

            ANSWER

            Answered 2018-Dec-17 at 20:30

            The answer this issue is that extensions have a much more strict content-security policy. They will not allow eval or eval like functions to execute. Apparently, in the webassembly of this library, there is at least one function like this hindering the promise from success.

            The solution can be found here:https://developer.chrome.com/extensions/sandboxingEval

            It does work sending the message back and forth and the iframe does have access to the library/resulting code from the promise.

            I hope this helps someone else too and if this needs editing or clarification, please let me know.

            Source https://stackoverflow.com/questions/53773291

            QUESTION

            Delay Vue.JS component loading until promise is resolved
            Asked 2018-Mar-25 at 19:38

            I'm extensively using libsodium.js in a Vue.JS application I'm building. Libsodium.js isn't usable right away, it does some async loading.

            Because I use this library in pretty much every .vue component, I need to delay the actual component loading in Vue until libsodium is fully loaded.

            I'm imagining something like this:

            ...

            ANSWER

            Answered 2018-Mar-25 at 19:38

            Restructure your code so that the Vue isn't created until sodium is ready.

            Source https://stackoverflow.com/questions/49478129

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install libsodium.js

            The dist directory contains pre-built scripts. Copy the files from one of its subdirectories to your application:.
            browsers includes a single-file script that can be included in web pages. It contains code for commonly used functions.
            browsers-sumo is a superset of the previous script, that contains all functions, including rarely used ones and undocumented ones.
            modules includes commonly used functions, and is designed to be loaded as a module. libsodium-wrappers is the module your application should load, which will in turn automatically load libsodium as a dependency.
            modules-sumo contains sumo variants of the previous modules.
            libsodium-wrappers
            libsodium-wrappers-sumo

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jedisct1/libsodium.js.git

          • CLI

            gh repo clone jedisct1/libsodium.js

          • sshUrl

            git@github.com:jedisct1/libsodium.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Cryptography Libraries

            dogecoin

            by dogecoin

            tink

            by google

            crypto-js

            by brix

            Ciphey

            by Ciphey

            libsodium

            by jedisct1

            Try Top Libraries by jedisct1

            libsodium

            by jedisct1C

            dsvpn

            by jedisct1C

            piknik

            by jedisct1Go

            minisign

            by jedisct1C

            pure-ftpd

            by jedisct1C