Skip to content

Instantly share code, notes, and snippets.

@oscarDev1190
oscarDev1190 / base58.py
Created November 25, 2020 12:25
Encode y Decoder de base10 a base58.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
BASE_58 = ('1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L',
'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z')
def div58(n):
yield n
while True:

Keybase proof

I hereby claim:

  • I am oscardev1190 on github.
  • I am oscarve (https://keybase.io/oscarve) on keybase.
  • I have a public key ASBnSBWWPKBQrXN3Fidf4LzXdHXbE_ozJtY_CXh2H_fEnwo

To claim this, I am signing this object: