This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2019 LINE Corporation | |
// | |
// LINE Corporation licenses this file to you under the Apache License, | |
// version 2.0 (the "License"); you may not use this file except in compliance | |
// with the License. You may obtain a copy of the License at: | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-07-14T03:44:39.402Z","extensionVersion":"v3.4.3"} |