Beispiel #1
0
            privkey = newkey.exportKey().decode('utf-8')
            with open('wallets/' + name + '.privkey', 'a') as privf:
                enc = AESCipher(phrase)
                encKey = enc.encrypt(privkey)
                privf.write(str(encKey))
            print(color.I('Wallet created successfully!\n'))
            openWallet()
        else:
            print('Wallet with name "' + name + '" already exists!')
            openWallet()


if __name__ == "__main__":
    print(
        color.M('\n' + """
    ______                 _     _____       _
    |  _  \               | |   /  __ \     (_)
    | | | |_   _ _ __ ___ | |__ | /  \/ ___  _ _ __
    | | | | | | | '_ ` _ \| '_ \| |    / _ \| | '_ \\
    | |/ /| |_| | | | | | | |_) | \__/\ (_) | | | | |
    |___/  \__,_|_| |_| |_|_.__/ \____/\___/|_|_| |_|


            """ + """                            Wallet v1.0.0
                         Updated: December 14th, 2017
                               Developed by Jwb.Cloud\n
            """))
    if not os.path.exists('wallets'):
        os.makedirs('wallets')
    openWallet()