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": "**Introduction**\n\nPassionate about IT since childhood, I started programming at age 12 (Logo, Basic, Z80 assembler, 680x0, C/C++). My initial training, focused on electronics and industrial IT, then on management IT (client/server programming, network, system, database, and network architecture), gave me a comprehensive vision of IT from hardware to software.\n\nWith nearly 30 years of professional experience (since 1997), I have successively held roles as application developer, database administrator, system engineer, network engineer, security engineer, middleware expert, and finally Solutions Architect in very diverse business and technical co |
| 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 CryptoKeys 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