Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!
- generateKey | importKey |
Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!
| var assert = require('assert') | |
| var crypto = require('crypto') | |
| var jose = require('jose') | |
| var jws = require('jws') | |
| var convert = require('jwk-to-pem') | |
| var { publicKey, privateKey } = crypto.generateKeyPairSync('rsa', { | |
| modulusLength: 4096, | |
| publicKeyEncoding: { | |
| type: 'spki', |
| Jenkinsfile examples |
| ########################################################### | |
| ## this configuration was generated by JFrog Artifactory ## | |
| ########################################################### | |
| ## server configuration | |
| server { | |
| listen 80 ; | |
| server_name ~(?<repo>.+)\.jfrog.dev.local jfrog.dev.local; |
| pipeline { | |
| agent none | |
| stages { | |
| stage('Checkout') { | |
| agent { | |
| docker { image 'node:alpine' } | |
| } | |
| stages { |
Running CLI in Docker container:
docker exec -it pubSubStandardSingleNode /usr/sw/loads/currentload/bin/cli -A
| server { | |
| listen 80; | |
| listen [::]:80 default ipv6only=on; | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| server_name _; # all hostnames | |
| location / { |
| const socketio = require('feathers-socketio') | |
| const authOnSocketConnect = require('./authenticate-on-socket-connect') | |
| // ... Setup your Feathers app code or use the generator then replace the socketio registration with this | |
| // When you register the feathers-socketio plugin, use the utility | |
| app.configure(socketio(function (io) { | |
| // Get Socket.io headers | |
| io.on('connection', function (socket) { | |
| authOnSocketConnect({ app, socket }) |