AES-CBC が早いけど、AES-GCM/AES-CTR が遅かったり、Ryzen が爆速だったり、 ChaCha20-Poly1305 が ARM で早かったりするという噂の真相が知りたいです。コメントに適当にべたべた結果を貼ってください。
ちなみに Apple M2 おかしいくらい早いです。
CPU 情報はできれば詳細なのがほしいです。
OpenSSL のバージョンは 3.1 系の最新版でお願いします。
| /* | |
| Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command: | |
| ssh -R 8080:127.0.0.1:8080 operatore@146.148.22.123 | |
| which opens a tunnel between the two endpoints and permit to exchange information on this direction: | |
| server:8080 -----> client:8080 |
| console.log('Loading function'); | |
| const https = require('https'); | |
| const url = require('url'); | |
| // to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
| const slack_url = 'https://hooks.slack.com/services/...'; | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| slack_req_opts.headers = {'Content-Type': 'application/json'}; |
| // A small SSH daemon providing bash sessions | |
| // | |
| // Server: | |
| // cd my/new/dir/ | |
| // #generate server keypair | |
| // ssh-keygen -t rsa | |
| // go get -v . | |
| // go run sshd.go | |
| // | |
| // Client: |
| #!/bin/bash | |
| source /etc/environment | |
| name=$(cat /etc/machine-id) | |
| if [ ! -f /opt/consul ]; then | |
| mkdir /opt | |
| mkdir /var/lib/consul | |
| wget https://dl.bintray.com/mitchellh/consul/0.3.1_linux_amd64.zip | |
| unzip 0.3.1_linux_amd64.zip |
| #!/bin/bash | |
| source /etc/environment | |
| name=$(cat /etc/machine-id) | |
| if [ ! -f /opt/consul ]; then | |
| mkdir /opt | |
| mkdir /var/lib/consul | |
| curl http://storage.googleapis.com/ifup-org-tilde/consul-0.2.0-linux-x86-64.lzma | lzcat > /opt/consul | |
| chmod +x /opt/consul |
| #!/usr/bin/env ruby | |
| require 'json' | |
| require 'slop' | |
| require 'chef/encrypted_data_bag_item' | |
| def usage | |
| "Load JSON from STDIN and then convert JSON to encrypt data bag. | |
| Usage: #{File.basename(__FILE__)} -s [secret_file]" | |
| end |
| --- | |
| driver_plugin: vagrant | |
| driver_config: | |
| require_chef_omnibus: true | |
| platforms: | |
| - name: ubuntu-12.04-solo | |
| driver_config: | |
| box: opscode-ubuntu-12.04 | |
| provisioner: chef_solo |
| # On a Mac, use this script to generate secure deployment key | |
| # To generate secure SSH deploy key for a github repo to be used from Travis | |
| base64 --break=0 ~/.ssh/id_rsa_deploy > ~/.ssh/id_rsa_deploy_base64 | |
| ENCRYPTION_FILTER="echo \$(echo \"- secure: \")\$(travis encrypt \"\$FILE='\`cat $FILE\`'\" -r floydpink/harimenon.com)" | |
| # If you don't have homebrew please install it from http://brew.sh/ | |
| brew install coreutils | |
| gsplit --bytes=100 --numeric-suffixes --suffix-length=2 --filter="$ENCRYPTION_FILTER" ~/.ssh/id_rsa_deploy_base64 id_rsa_ | |
| # To reconstitute the private SSH key from within the Travis-CI build (typically from 'before_script') |
| #!/usr/bin/env ruby | |
| Dir.chdir File.join(__FILE__, "../..") | |
| unless ENV['EDITOR'] | |
| puts "No EDITOR found. Try:" | |
| puts "export EDITOR=vim" | |
| exit 1 | |
| end | |
| unless ARGV.count == 2 |