Skip to content

Instantly share code, notes, and snippets.

View mlevkov's full-sized avatar

Maxim Levkov mlevkov

View GitHub Profile
@mlevkov
mlevkov / signedrequests_modified.go
Created June 4, 2022 07:27
Google Media CDN Signed URLs key helper with PEM converter
package main
import (
"crypto/ed25519"
"crypto/x509"
"encoding/base64"
"encoding/pem"
"flag"
"fmt"
"io"
#![allow(unused_imports)]
#![allow(non_snake_case)]
#[macro_use] extern crate log;
extern crate simple_logger;
extern crate xml;
extern crate yaserde;
#[macro_use] extern crate yaserde_derive;
use std::{io::BufReader, fs::File, fs::read_to_string, io::Read, io::Write};