This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomPassword(length) { | |
var charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
var result = ""; | |
if (window.crypto && window.crypto.getRandomValues) { | |
values = new Uint32Array(length); | |
window.crypto.getRandomValues(values); | |
for(var i=0; i<length; i++) { | |
result += charset[values[i] % charset.length]; | |
} | |
return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pbkdf_aes_key(aes, pObj) { | |
var pidcrypt = aes.pidcrypt; | |
var retObj = {}; | |
var count = 1; | |
var miter = 3; | |
if(!pObj) pObj = {}; | |
if(pObj.rounds) { | |
count = pObj.rounds; | |
} | |
if(!pObj.salt) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## bitwalletrecover.py - recover private keys from your darkcoin wallet | |
## (this version was not tested with bitcoin/litecoin). | |
## Requires python3, pycoin (https://pypi.python.org/pypi/pycoin), | |
## and base58 (https://pypi.python.org/pypi/base58). | |
## | |
## Starting with Python 3.4, pip is included by default with the Python binary | |
## installers. To install pip for older versions 3.x: | |
## | |
## sudo apt-get install python3-setuptools | |
## sudo easy_install3 pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import hashlib | |
import base58 | |
from pycoin.ecdsa import generator_secp256k1, public_pair_for_secret_exponent | |
def bytetohex(byteStr): | |
return ''.join( [ "%02X" % x for x in byteStr ] ).strip() | |
litecoin = [b"\x30", b"\xb0"] | |
bitcoin = [b"\x00", b"\x80"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('libs/utils.php'); | |
list( $bot, $host, $username, $password, $post, $title, $content) = $argv; | |
$site = 'https://' . $host . '/xmlrpc.php'; | |
echo ' Posting to Site : '.'https://' . $host.'/'.PHP_EOL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter import filedialog | |
from tkinter.filedialog import askopenfilename,asksaveasfile | |
from PyPDF2 import PdfFileReader | |
#=================open file method====================== | |
def openFile(): | |
file = askopenfilename(defaultextension=".pdf", | |
filetypes=[("Pdf files","*.pdf")]) | |
if file == "": |