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
| import System; | |
| import System.Windows.Forms; | |
| import Fiddler; | |
| import System.Web; | |
| import System.Security.Cryptography; | |
| // INTRODUCTION | |
| // | |
| // Well, hello there! | |
| // |
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
| 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. |