Skip to content

Instantly share code, notes, and snippets.

View BOPOHOB's full-sized avatar

Pavel BOPOHOB

View GitHub Profile
@BOPOHOB
BOPOHOB / hmac_sha1.py
Last active March 30, 2018 14:21 — forked from heskyji/hmac_sha1.py
Generate HMAC-SHA1 Signature using Python 3
import hashlib
import hmac
import base64
import click
def make_digest(message):
key = bytes(message, 'UTF-8')
message = bytes(message, 'UTF-8')
@BOPOHOB
BOPOHOB / main.cpp
Last active March 15, 2017 20:02 — forked from alexey-detr/main.cpp
Читаем заголовок WAV файла на C++
#ifndef WAVHEADER_H
#define WAVHEADER_H
#include <QtGlobal>
#include <QString>
#include <QDebug>
// Структура, описывающая заголовок WAV файла.
struct WAVHeader
{