Skip to content

Instantly share code, notes, and snippets.

@cecepm
Created January 9, 2016 01:38
Show Gist options
  • Save cecepm/30dde99376affde07902 to your computer and use it in GitHub Desktop.
Save cecepm/30dde99376affde07902 to your computer and use it in GitHub Desktop.
playing with python otpauth
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import qrcode\n",
"import matplotlib.pyplot as plt\n",
"from otpauth import OtpAuth\n",
"\n",
"\n",
"auth = OtpAuth('abcdefghijklmnopqrstuvwxyz') # a secret string\n",
"s = auth.to_uri('totp', '[email protected]', 'My Personal OTP')\n",
"img = qrcode.make(s)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x10a7a7950>"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQQAAAEACAYAAABVmQgcAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnX9w1cX5799PkpNDaAsVIng1IFi0IOjUO4BavSVS7Vf7\nnYK1TAjeOkVaxPGWgt7aBrECxRFrnQHE6RSsvYP2G0JsFXOnVC1I0LYi2C8qabDhCkbLtwYCThkg\ngfzY+0eOH3P2s5zdbD7nl7xfMzucz/I8zz6753OenH3OfnZFKQVCCAGAgmw7QAjJHRgQCCEBDAiE\nkAAGBEJIAAMCISSAAYEQEpC2gCAiN4rIOyLSJCI/Tlc7hJDokHSsQxCRAgBNAL4K4L8A7AJQqZR6\nJ/LGCCGRka5vCJMB7FNKNSulOgDUAJieprYIIRGRroBwAYAPel3/I1FHCMlhmFQkhAQUpcnuQQAj\ne12XJeoCRIQPURCSRZRSotel6xvCLgBjRORCESkGUAmgThdasmQJlFJ5VfLR53z1Ox99zhe/z0Ra\nviEopbpE5PsAXkJP0HlSKbU3HW0RQqIjXVMGKKVeAPDFdNknhERPVpOK5eXl2Wzei3z0GchPv/PR\nZyB//QbStDDJqWERla22CTnbERGoDCYVCSF5CAMCISSAAYEQEsCAQAgJYEAghAQwIBBCAhgQCCEB\nDAiEkAAGBEJIAAMCISSAAYEQEpC2px0zxbXXXou//vWvWWu/qqoKS5Ys6bPe5z//eZw6darf7Y8f\nPx5vvPFGv+0AQElJiVWmra3NS88Xvb0rrrgC77zzTkqZxx9/HPfee29KuwMHDsSRI0eS6srKykJ1\nuu0HHngAP//5z518TweTJk3CK6+8kjb7eR8QTp06hfb29qy139HR4aXX1taG06dP97v9KPvuayuT\n49/e3m5tr7Oz0yojEnquB21tbVa9jo6OrN5vUfwRSQWnDISQAAYEQkgAAwIhJOBTGRCysTllKg4f\nPgwRSSrHjh2z2l69erXVn5qampBtE7qMqbj031fP933T23r22WetMu+99561/ba2tpBeU1NTZH5n\n837rD5/KgEAI8YMBgRASwIBACAnI+3UILrz88st44okn+qy3Zs0alJaW9rv9z33uc6iurk6qmzNn\nDrq7u5PqdJmGhgbMmjUrqW7Dhg1ePui2H3vsMezYscPLlo7uo0v7f/nLX/D4449b7eh6559/vrWt\nP/zhD2hpabHK6dxxxx0oLi5OqvMZ70OHDmHBggV91ps3b172d2zO9IkxvZIlKgomTpyoACQVnXXr\n1oVkXEpzc3PIli6zePFiL7+Li4utfs+fP98qs2fPHquMiYqKCi89n3E02a6urvbSi9Inn/arqqqs\nMvv37/dq68knn7T2bfLkyU5j4jJmyvC55JSBEBLAgEAICWBAIIQEMCBkANPCJJcHmx577DHrIpzL\nLrssbX5v3brVaRGSC7qduro6r4U548aNi2RhVElJSU4uDMo2DAiEkAAGBEJIAAMCISTgrFiYlIvM\nmDEDBQXJ8Xjjxo1WvYqKiqTrf/3rX3jxxRf73P7VV19tlRk2bFioPZOPuoxv+y79P3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"<matplotlib.figure.Figure at 0x10a627650>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.imshow(img)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment