For symmetic encryption, you can use the following:
To encrypt:
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt
To decrypt:
{ | |
"basics": { | |
"name": "Mathieu CARBONNEAUX OSUAGWU", | |
"label": "Senior Infrastructure Solutions Architect", | |
"photo": "https://www.ch2o.info/en/about/photocv.jpg", | |
"picture": "https://www.ch2o.info/en/about/photocv.jpg", | |
"image": "https://www.ch2o.info/en/about/photocv.jpg", | |
"website": "https://www.ch2o.info", | |
"summary": "Passionate about IT since I was very young, I started programming at the age of 12 (logo, basic, Z80 assembler, 680x0, C/C++). \n\nI initially trained in electronics, industrial IT and then in management IT (client/server programming, network, system, database and network writing), which gave me a global vision of IT from hardware to software. \n\nWith nearly 30 years (1997) of professional experience, where I have alternately held the roles of application developer, database administrator, system engineer, network engineer, security engineer, middleware expert, and ended up as a Solutions Architect, in a wide variety of business and technical applications. I am w |
openapi: 3.0.3 | |
info: | |
title: Smallstep Certificates API | |
description: | | |
A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management. | |
This API allows you to: | |
- Issue and manage X.509 TLS certificates | |
- Handle SSH certificates | |
- Manage certificate renewal and revocation |
Source: https://sysadm.life/posts/porting_golang_to_sparc/
Learn how to compile and port Go for SPARC Solaris
Tue, 18 Dec 2018 label GO Solaris
This article aims to present the steps required to create a port of Go for SPARC Solaris. The ‘spark’ that kicked this idea off was part of an aspiration to first get the Prometheus node exporter for the core machine metrics running on SPARC tin for Solaris 11.3, then potentially other node exporters such as the JMX exporter and a Oracle DB exporter.
Note: Oracle announced Go version 1.7.6 will be available in Solaris 11.4. However, it seems like that 11.4 is a no go for a lot of SPARC hardware
NAME TITLE | |
abusiveexperiencereport.googleapis.com Abusive Experience Report API | |
acceleratedmobilepageurl.googleapis.com Accelerated Mobile Pages (AMP) URL API | |
accessapproval.googleapis.com Access Approval API | |
accesscontextmanager.googleapis.com Access Context Manager API | |
actions.googleapis.com Actions API | |
adexchangebuyer-json.googleapis.com Ad Exchange Buyer API | |
adexchangebuyer.googleapis.com Ad Exchange Buyer API II | |
adexchangeseller.googleapis.com Ad Exchange Seller API | |
adexperiencereport.googleapis.com Ad Experience Report API |
esphome: | |
name: west_warehouse_access_control | |
platform: ESP32 | |
board: esp32-poe | |
includes: | |
- custom_components/wiegand_device/wiegand_device.h | |
ethernet: | |
use_address: west_warehouse_access_control | |
type: LAN8720 |
This is a working example on how to store CryptoKey
s locally in your browser. We are able to save the objects, without serializing them. This means we can keep them not exportable (which might be more secure?? not sure what attack vectors this prevents).
To try out this example, first make sure you are in a browser that has support for async...await
and indexedDB (latest chrome canary with chrome://flags
"Enable Experimental Javascript" works). Load some page and copy and paste this code into the console. Then call encryptDataSaveKey()
. This will create a private/public key pair and encrypted some random data with the private key. Then save both of them. Now reload the page, copy in the code, and run loadKeyDecryptData()
. It will load the keys and encrypted data and decrypt it. You should see the same data logged both times.
The newer versions of bash include a regex operator =~
Simple example
$ re='t(es)t'
$ [[ "test" =~ $re ]]
$ echo $?
0
$ echo ${BASH_REMATCH[1]}
es