The following regular expressions are crafted to match some commonly used cryptocurrency wallet address types. This document details the Regex components and pattern tests to match Ethereum, Bitcoin, Dash and Monero addresses.
/^0x[a-fA-F0-9]{40}$/g
The following regular expressions are crafted to match some commonly used cryptocurrency wallet address types. This document details the Regex components and pattern tests to match Ethereum, Bitcoin, Dash and Monero addresses.
/^0x[a-fA-F0-9]{40}$/g
| import crypto from 'crypto'; | |
| const ALGORITHM = 'aes-256-cbc'; | |
| const ENCODING = 'hex'; | |
| const IV_LENGTH = 16; | |
| const KEY = process.env.ENCRYPTION_KEY!; | |
| export const encrypt = (data: string) => { | |
| const iv = crypto.randomBytes(IV_LENGTH); | |
| const cipher = crypto.createCipheriv(ALGORITHM, new Buffer(KEY), iv); |
| version: '3.3' | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:latest | |
| ports: | |
| - "9200:9200" | |
| - "9300:9300" | |
| configs: |
| # For Windows users# Note: <> denotes changes to be made | |
| #Create a conda environment | |
| conda create --name <environment-name> python=<version:2.7/3.5> | |
| #To create a requirements.txt file: | |
| conda list #Gives you list of packages used for the environment | |
| conda list -e > requirements.txt #Save all the info about packages to your folder |
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)