Skip to content

Instantly share code, notes, and snippets.

@huoshan12345
huoshan12345 / encrypt.cs
Last active February 27, 2026 22:01
Instagram enc_password generator in C#
// Packages need to be installed:
// Sodium.Core
// System.Security.Cryptography.Algorithms
// The values of publicKey,keyId,version are from shared_data.
// You need to call https://www.instagram.com/data/shared_data/ to get shared_data first
public static string GenerateEncPassword(string password, string publicKey, string keyId, string version)
{
var time = DateTime.UtcNow.ToTimestamp(); // Unix timestamp
var keyBytes = publicKey.HexToBytes(); // Convert a hex string to a byte array
@Sazpaimon
Sazpaimon / FiddlerScript.js
Created July 25, 2019 00:57
Sonic Runners Fiddler Decryption Script
import System;
import System.Windows.Forms;
import Fiddler;
import System.Web;
import System.Security.Cryptography;
// INTRODUCTION
//
// Well, hello there!
//
@pwlin
pwlin / gist:8a0d01e6428b7a96e2eb
Last active March 11, 2026 23:59
Android : add cert to system store
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.