Skip to content

Instantly share code, notes, and snippets.

View tnanhpt's full-sized avatar

Anh Pham tnanhpt

View GitHub Profile
@arvindkumarbadwal
arvindkumarbadwal / axios.js
Created May 15, 2020 13:58
Axios SSL Certificate Pinning
const tls = require('tls');
const https = require('https');
const crypto = require('crypto');
const axios = require('axios');
function sha256(s) {
return crypto.createHash('sha256').update(s).digest('base64');
}
const options = {