Skip to content

Instantly share code, notes, and snippets.

View i3visio's full-sized avatar

i3visio i3visio

View GitHub Profile
@i3visio
i3visio / hashcash.py
Created August 9, 2016 21:27
hashcash.py is a clean implementation of a "proof of work" library for Python.
# ----------------------------------------------
# hashcash.py: Hashcash implementation
# ----------------------------------------------
"""
Hashcash is a "proof of work."
Example:
>>> import sha
>>> sha.new('denmark2890CF').hexdigest() '000000cf89643370c24e413ec0886ab92bd7f6e8'
# -*- coding: utf-8 -*-
# Copyright (C) 2016, Félix Brezo @febrezo and Yaiza Rubio @yrubiosec
#
# This program is free software: you can redistribute it and/or modify#
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@i3visio
i3visio / addres_validator.py
Last active August 9, 2016 20:01
Cryptocurrencies address validator. Works in Python 2 and Python 3.
# -*- coding: utf-8 -*-
# Copyright (C) 2016, Félix Brezo @febrezo and Yaiza Rubio @yrubiosec
#
# This program is free software: you can redistribute it and/or modify#
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# !/usr/bin/python
# -*- coding: UTF-8 -*-
#
##################################################################################
#
# Copyright 2016 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@i3visio
i3visio / osrframework-installer.py
Last active January 21, 2016 22:07
An unattended installer for OSRFramework.
# -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2015 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# This program is Free Software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.