Add files via upload

This commit is contained in:
Kaushal Kumar Agarwal 2018-06-24 19:43:01 +05:30 committed by GitHub
parent 9ba4921820
commit ebffde6043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

BIN
Flo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

12
pdf generation.py Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env python3
from fpdf import FPDF
pdf = FPDF()
pdf.add_page()
pdf.set_font('Arial', 'B', 16)
#width,height,msg,border,align,background
pdf.image('Flo.png',20,20,33)
pdf.multi_cell(0,10,'A secret has been encrypted and posted on the blockchain of the FLO cryptocurrency.',0,'C',False)
pdf.multi_cell(0,10,'The key to decrypt this secret has been split in 3 shares like this one. By design, the secret can be decrypted with any 2 of these shares.',0,'C',False)
pdf.multi_cell(0,10,'Bellow is the part of the key that belongs to this share',0,'C',False)
#add shared key using multi_cell
pdf.output('sharedkey.pdf','F')