REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.83 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/ecdsa-sig-formatter/README.md
Text
Base64
# ecdsa-sig-formatter [](https://travis-ci.org/Brightspace/node-ecdsa-sig-formatter) [](https://coveralls.io/r/Brightspace/node-ecdsa-sig-formatter) Translate between JOSE and ASN.1/DER encodings for ECDSA signatures ## Install ```sh npm install ecdsa-sig-formatter --save ``` ## Usage ```js var format = require('ecdsa-sig-formatter'); var derSignature = '..'; // asn.1/DER encoded ecdsa signature var joseSignature = format.derToJose(derSignature); ``` ### API --- #### `.derToJose(Buffer|String signature, String alg)` -> `String` Convert the ASN.1/DER encoded signature to a JOSE-style concatenated signature. Returns a _base64 url_ encoded `String`. * If _signature_ is a `String`, it should be _base64_ encoded * _alg_ must be one of _ES256_, _ES384_ or _ES512_ --- #### `.joseToDer(Buffer|String signature, String alg)` -> `Buffer` Convert the JOSE-style concatenated signature to an ASN.1/DER encoded signature. Returns a `Buffer` * If _signature_ is a `String`, it should be _base64 url_ encoded * _alg_ must be one of _ES256_, _ES384_ or _ES512_ ## Contributing 1. **Fork** the repository. Committing directly against this repository is highly discouraged. 2. Make your modifications in a branch, updating and writing new unit tests as necessary in the `spec` directory. 3. Ensure that all tests pass with `npm test` 4. `rebase` your changes against master. *Do not merge*. 5. Submit a pull request to this repository. Wait for tests to run and someone to chime in. ### Code Style This repository is configured with [EditorConfig][EditorConfig] and [ESLint][ESLint] rules. [EditorConfig]: http://editorconfig.org/ [ESLint]: http://eslint.org
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
src
DIR
-
drwxr-xr-x
2026-02-03 15:06:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CODEOWNERS
11 B
lrw-r--r--
2026-02-03 15:06:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
11.05 KB
lrw-r--r--
2026-02-03 15:06:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.21 KB
lrw-r--r--
2026-02-03 15:06:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.83 KB
lrw-r--r--
2026-02-03 15:06:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).