Skip to content

Instantly share code, notes, and snippets.

@winok
winok / gist:6153500
Last active September 28, 2020 08:03
PHP SHA1WithRSA sign/verfiy
<?php
## openssl genrsa -out key.pem 1024
## openssl rsa -in key.pem -pubout -outform PEM -out pubkey.pem
## openssl rsa -in key.pem -pubout -outform DER -out pubkey.der
function hextobin($hexstr)
{
$n = strlen($hexstr);
$sbin="";
@winok
winok / gist:8348532
Created January 10, 2014 08:20
DDNS use dnspod
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import urllib2
import urllib
import json
import time
import socket
public_dic={}
public_dic["login_email"]="" #replace your email