Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
6.1 KiB
65 lines
6.1 KiB
export const salt1 = new Uint8Array([0xb6, 0xcb, 0x41, 0xe4, 0x2a, 0x56, 0x05, 0x4e, 0xb2, 0xe8, 0x32, 0x0e, 0x30, 0xb2, 0x15, 0xc0]); |
|
|
|
export const salt2 = new Uint8Array([0xf7, 0x95, 0x1e, 0x1b, 0x4a, 0xc1, 0xd1, 0xff, 0x67, 0x22, 0xd4, 0xad, 0xf1, 0x94, 0x15, 0x77]); |
|
|
|
export const g = 3; |
|
|
|
export const p = new Uint8Array([ |
|
0xc7, 0x1c, 0xae, 0xb9, 0xc6, 0xb1, 0xc9, 0x04, 0x8e, 0x6c, 0x52, 0x2f, 0x70, 0xf1, 0x3f, 0x73, 0x98, 0x0d, 0x40, 0x23, 0x8e, 0x3e, 0x21, 0xc1, |
|
0x49, 0x34, 0xd0, 0x37, 0x56, 0x3d, 0x93, 0x0f, 0x48, 0x19, 0x8a, 0x0a, 0xa7, 0xc1, 0x40, 0x58, 0x22, 0x94, 0x93, 0xd2, 0x25, 0x30, 0xf4, 0xdb, |
|
0xfa, 0x33, 0x6f, 0x6e, 0x0a, 0xc9, 0x25, 0x13, 0x95, 0x43, 0xae, 0xd4, 0x4c, 0xce, 0x7c, 0x37, 0x20, 0xfd, 0x51, 0xf6, 0x94, 0x58, 0x70, 0x5a, |
|
0xc6, 0x8c, 0xd4, 0xfe, 0x6b, 0x6b, 0x13, 0xab, 0xdc, 0x97, 0x46, 0x51, 0x29, 0x69, 0x32, 0x84, 0x54, 0xf1, 0x8f, 0xaf, 0x8c, 0x59, 0x5f, 0x64, |
|
0x24, 0x77, 0xfe, 0x96, 0xbb, 0x2a, 0x94, 0x1d, 0x5b, 0xcd, 0x1d, 0x4a, 0xc8, 0xcc, 0x49, 0x88, 0x07, 0x08, 0xfa, 0x9b, 0x37, 0x8e, 0x3c, 0x4f, |
|
0x3a, 0x90, 0x60, 0xbe, 0xe6, 0x7c, 0xf9, 0xa4, 0xa4, 0xa6, 0x95, 0x81, 0x10, 0x51, 0x90, 0x7e, 0x16, 0x27, 0x53, 0xb5, 0x6b, 0x0f, 0x6b, 0x41, |
|
0x0d, 0xba, 0x74, 0xd8, 0xa8, 0x4b, 0x2a, 0x14, 0xb3, 0x14, 0x4e, 0x0e, 0xf1, 0x28, 0x47, 0x54, 0xfd, 0x17, 0xed, 0x95, 0x0d, 0x59, 0x65, 0xb4, |
|
0xb9, 0xdd, 0x46, 0x58, 0x2d, 0xb1, 0x17, 0x8d, 0x16, 0x9c, 0x6b, 0xc4, 0x65, 0xb0, 0xd6, 0xff, 0x9c, 0xa3, 0x92, 0x8f, 0xef, 0x5b, 0x9a, 0xe4, |
|
0xe4, 0x18, 0xfc, 0x15, 0xe8, 0x3e, 0xbe, 0xa0, 0xf8, 0x7f, 0xa9, 0xff, 0x5e, 0xed, 0x70, 0x05, 0x0d, 0xed, 0x28, 0x49, 0xf4, 0x7b, 0xf9, 0x59, |
|
0xd9, 0x56, 0x85, 0x0c, 0xe9, 0x29, 0x85, 0x1f, 0x0d, 0x81, 0x15, 0xf6, 0x35, 0xb1, 0x05, 0xee, 0x2e, 0x4e, 0x15, 0xd0, 0x4b, 0x24, 0x54, 0xbf, |
|
0x6f, 0x4f, 0xad, 0xf0, 0x34, 0xb1, 0x04, 0x03, 0x11, 0x9c, 0xd8, 0xe3, 0xb9, 0x2f, 0xcc, 0x5b |
|
]); |
|
|
|
export const srp_id = '3541879028763065224'; |
|
|
|
export const srp_B = new Uint8Array([ |
|
0x9a, 0xc2, 0xcd, 0x7f, 0x80, 0x94, 0x5b, 0x9d, 0xb2, 0x77, 0x37, 0x55, 0x3d, 0xf8, 0xe4, 0xda, 0xca, 0xa1, 0xcd, 0x1e, 0x18, 0x79, 0x3d, 0xbc, |
|
0x75, 0xd5, 0x34, 0x31, 0x1e, 0xc7, 0x9a, 0x00,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 0xd0, 0x4f, 0x3b, |
|
0x12, 0x28, 0x83, 0x22, 0x86, 0x80, 0x94, 0x6a, 0xa9, 0xcb, 0xcb, 0x0a, 0x3f, 0xea, 0x6e, 0x61, 0x8e, 0x50, 0x99, 0x06, 0x2e, 0x36, 0xca, 0x99, |
|
0x11, 0x84, 0x61, 0x56, 0xe9, 0x9f, 0x5b, 0x2c, 0x03, 0xb4, 0x1d, 0xe3, 0xde, 0x2c, 0x95, 0x39 |
|
]); |
|
|
|
export const secure_random = new Uint8Array(new Uint32Array([ |
|
0x9153faef, 0x8f2bb6da, 0x91f6e5bc, 0x96bc0086, 0x0a530a57, 0x2a0f45aa, 0xc0842b46, 0x02d711f8, 0xbda8d59f, 0xb53705e4, 0xae3e31a3, 0xc4f06819, |
|
0x55425f22, 0x4297b8e9, 0xefd898fe, 0xc22046de, 0xbb7ba8a0, 0xbcf2be1a, 0xda7b1004, 0x24ea318f, 0xdcef6ccf, 0xe6d7ab7d, 0x978c0eb7, 0x6a807d4a, |
|
0xb200eb76, 0x7a22de0d, 0x828bc53f, 0x42c5a35c, 0x2df6e6ce, 0xeef9a348, 0x7aae8e9e, 0xf2271f2f, 0x6742e83b, 0x8211161f, 0xb1a0e037, 0x491ab2c2, |
|
0xc73ad63c, 0x8bd1d739, 0xde1b523f, 0xe8d46127, 0x0cedcf24, 0x0de8da75, 0xf31be493, 0x35765329, 0x55041dc5, 0x770c18d3, 0xe75d0b35, 0x7df9da4a, |
|
0x5c8726d4, 0xfced87d1, 0x57524008, 0x83dc57fa, 0x1937ac17, 0x608c5446, 0xc4774dcd, 0x123676d6, 0x83ce3a1a, 0xb9f7e020, 0xca52faaf, 0xc9996982, |
|
0x2717c8e0, 0x7ea383d5, 0xfb1a007b, 0xa0d170cb |
|
]).buffer); |
|
|
|
export const password = 'pas'; |
|
|
|
export const A = new Uint8Array([ |
|
0x53, 0x27, 0xbf, 0x0e, 0x6b, 0x28, 0xd0, 0x75, 0x7f, 0xa2, 0xab, 0x23, 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
0x20, 0x91, 0xf6, 0x59, 0x19, 0xb8, 0xa0, 0x85, 0xe3, 0x31, 0x5e, 0xfc, 0xa2, 0xe1, 0xa5, 0xeb, 0x41, 0xa4, 0x1d, 0xef, 0xbb, 0x63, 0xed, 0x39, |
|
0xc4, 0x6c, 0x99, 0x19, 0x7f, 0x44, 0xc5, 0x3b, 0x01, 0x12, 0x4b, 0xdd, 0xab, 0xf1, 0xf6, 0x98, 0x24, 0x57, 0xf5, 0x3d, 0xc9, 0xd3, 0x47, 0x7a, |
|
0x6e, 0xb7, 0x45, 0x04, 0x6c, 0x70, 0x95, 0x20, 0x82, 0x5c, 0x57, 0x1a, 0x63, 0xb7, 0xdf, 0xa1 |
|
]); |
|
|
|
export const M1 = new Uint8Array([ |
|
0x86, 0x47, 0xf0, 0xc3, 0x81, 0x4d, 0xcb, 0xa9, 0xfc, 0xe5, 0x3b, 0xa4, 0x0d, 0x87, 0x92, 0x08, 0x80, 0xa4, 0x13, 0xed, 0xdc, 0xcc, 0x59, 0x95, |
|
0xa2, 0x89, 0xf6, 0xe0, 0x8c, 0x21, 0x51, 0x2c |
|
]);
|
|
|