Skip to content

Instantly share code, notes, and snippets.

@peekpi
peekpi / generate_bitcoin_address.sh
Created July 26, 2018 10:36 — forked from colindean/generate_bitcoin_address.sh
Bitcoin address generator in bash
#!/bin/bash
#
# This is free and unencumbered software released into the public domain.
#
# Requires bc, dc, openssl, xxd
#
# by grondilu from https://bitcointalk.org/index.php?topic=10970.msg156708#msg156708
base58=({1..9} {A..H} {J..N} {P..Z} {a..k} {m..z})
bitcoinregex="^[$(printf "%s" "${base58[@]}")]{34}$"