hugoalh-studio / github-sodium-es Goto Github PK
View Code? Open in Web Editor NEWAn ES (JavaScript & TypeScript) module to provide an easier sodium for GitHub secrets.
License: Other
An ES (JavaScript & TypeScript) module to provide an easier sodium for GitHub secrets.
License: Other
tweetsodium
(GitHub)(NPM) is broken since v0.0.6 due to they seems intended to not pack any codes in order to force you to use libsodium.js
instead. However, source repository still have the original codes, and no codes packed in v0.0.6 was not mentioned in their changelog. ๐ค
All of the versions with major number 2 (i.e.: v2.X.X).
This maybe not able to publish a patch due to the NPM publish system. If this issue can be workaround, patch will be v2.0.2.
For immediately workarounds, install v1.1.6 instead, but do not forget all of the versions with major number 1 are mono function.
TweetSodium was marked as deprecated at 2022/04/05 (https://github.com/github/tweetsodium/releases/tag/v0.0.6), and LibSodium (i.e.: libsodium-wrappers) is a recommended replacement, but all are asynchronous.
import libsodium from "libsodium-wrappers";
// Compatible with the same `Uint8Array` arguments as `tweetsodium.seal()`
async function async_encrypt(messageBytes, publicKey) {
await libsodium.ready;
return libsodium.crypto_box_seal(messageBytes, publicKey);
};
// Compatible with the same `Uint8Array` arguments as `tweetsodium.sealOpen()`
async function async_decrypt(messageBytes, publicKey, privateKey) {
await libsodium.ready;
return libsodium.crypto_box_seal_open(messageBytes, publicKey, privateKey);
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.