UNPKG

ed25519_enc

Version:

A Rust and Node.js library that facilitates secure encryption and decryption by converting Ed25519 keys to X25519 keys. It utilizes elliptic-curve Diffie-Hellman (ECDH) to derive a shared secret, which is then used for symmetric encryption with AES-256-GC

76 lines (75 loc) 2.39 kB
{ "name": "ed25519_enc", "version": "0.1.4", "description": "A Rust and Node.js library that facilitates secure encryption and decryption by converting Ed25519 keys to X25519 keys. It utilizes elliptic-curve Diffie-Hellman (ECDH) to derive a shared secret, which is then used for symmetric encryption with AES-256-GCM.", "main": "./lib/index.cjs", "scripts": { "test": "tsc &&cargo test", "cargo-build": "tsc &&cargo build --message-format=json > cargo.log", "cross-build": "tsc &&cross build --message-format=json > cross.log", "postcargo-build": "neon dist < cargo.log", "postcross-build": "neon dist -m /target < cross.log", "debug": "npm run cargo-build --", "build": "npm run cargo-build -- --release", "cross": "npm run cross-build -- --release", "prepack": "tsc &&neon update", "version": "neon bump --binaries platforms && git add .", "release": "gh workflow run release.yml -f dryrun=false -f version=patch", "dryrun": "gh workflow run publish.yml -f dryrun=true" }, "author": "Son", "license": "MIT", "exports": { ".": { "import": { "types": "./lib/index.d.mts", "default": "./lib/index.mjs" }, "require": { "types": "./lib/index.d.cts", "default": "./lib/index.cjs" } } }, "types": "./lib/index.d.cts", "files": [ "lib/**/*.?({c,m}){t,j}s" ], "neon": { "type": "library", "org": "@ed25519_enc", "platforms": "common", "load": "./src/load.cts" }, "devDependencies": { "@neon-rs/cli": "^0.1.73", "@tsconfig/node20": "^20.1.4", "@types/node": "^20.11.16", "typescript": "^5.3.3" }, "dependencies": { "@neon-rs/load": "^0.1.73" }, "repository": { "type": "git", "url": "git+https://github.com/Experimental-Projects-NAS/ed25519_enc.git" }, "keywords": [ "cryptography", "ed25519", "x25519", "elliptic-curve-cryptography", "aes-gcm-256" ], "bugs": { "url": "https://github.com/Experimental-Projects-NAS/ed25519_enc/issues" }, "homepage": "https://github.com/Experimental-Projects-NAS/ed25519_enc#readme", "optionalDependencies": { "@ed25519_enc/win32-x64-msvc": "0.1.4", "@ed25519_enc/darwin-x64": "0.1.4", "@ed25519_enc/darwin-arm64": "0.1.4", "@ed25519_enc/linux-x64-gnu": "0.1.4", "@ed25519_enc/linux-arm64-gnu": "0.1.4" } }