{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import hashlib" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "'000001dbbfa3a5c83a2d506429c7b00e'" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "hashlib.md5(b\"abcdef609043\").hexdigest()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "53" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "bytes(str(75), 'ascii')[1]" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "346386" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "i = 0\n", "salt = b\"iwrupvqb\"\n", "hd = hashlib.md5(salt + bytes(str(i), 'ascii')).hexdigest()\n", "while not hd.startswith('00000'):\n", " i+=1\n", " hd = hashlib.md5(salt + bytes(str(i), 'ascii')).hexdigest()\n", "i" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "9958218" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "i = 0\n", "salt = b\"iwrupvqb\"\n", "hd = hashlib.md5(salt + bytes(str(i), 'ascii')).hexdigest()\n", "while not hd.startswith('000000'):\n", " i+=1\n", " hd = hashlib.md5(salt + bytes(str(i), 'ascii')).hexdigest()\n", "i" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.4.3" } }, "nbformat": 4, "nbformat_minor": 0 }