In your bunny.net account, go to the Delivery -> CDN tab and create a new pull zone.
Pick a name, set https://ziglang.org
as the origin, and choose "High Volume Tier", as we're going to be serving relatively large files.
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
#!/usr/bin/env python3 | |
import argparse | |
import base64 | |
import hashlib | |
import json | |
import os | |
import secrets | |
import sys | |
import time |
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
Double BS-SPEKE | |
Double BS-SPEKE is BS-SPEKE but with 3DH vs Noise-KN to make it a doubly | |
augmented PAKE. Double BS-SPEKE is the best doubly augmented PAKE that I know | |
of. Only problem is there are no proofs, but it's not hard to take the SPEKE | |
proof, add the OPAQUE proof for OPRF, and it's obvious that the doubly augmented | |
change makes it doubly augmented. So if anyone knows how to formally state that | |
in a proof, that would be awesome to have. BS-SPEKE defined on multiplicative | |
groups can be found here: | |
https://gist.github.com/Sc00bz/ec1f5fcfd18533bf0d6bf31d1211d4b4 |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
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
BS-SPEKE | |
BS-SPEKE is a modified B-SPEKE with blind salt (OPRF). Modified B-SPEKE is a | |
similar change from SPEKE as from SPAKE2 to SPAKE2+ to make it augmented. Doing | |
this saves a scalar point multiply vs original B-SPEKE with blind salt. BS-SPEKE | |
is the best augmented PAKE that I know of. Only problem is there are no proofs, | |
but it's not hard to take the SPEKE proof, add the OPAQUE proof for OPRF, and | |
it's obvious that the augmented change makes it augmented. So if anyone knows | |
how to formally state that in a proof, that would be awesome to have. BS-SPEKE | |
defined on multiplicative groups can be found here: |
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
-- LR imports | |
local LrApplication = import("LrApplication") | |
local LrApplicationView = import("LrApplicationView") | |
local LrBinding = import("LrBinding") | |
local LrDevelopController = import("LrDevelopController") | |
local LrDialogs = import("LrDialogs") | |
local LrExportSession = import("LrExportSession") | |
local LrFileUtils = import("LrFileUtils") | |
local LrFunctionContext = import("LrFunctionContext") | |
local LrLogger = import("LrLogger") |
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
TL;DR The best PAKE in this list is SPAKE2+EE with blind salt and client verifies first. Also don't | |
use standard clamping with Ed25519. For the 32 byte scalars, clear the highest bit and lowest 3 bits | |
then check for zero. | |
Number of DLPs to solve to do offline guessing of N passwords | |
| SRP6a | "SRP6b" | OPAQUE | SPAKE2+ | SPAKE2+EE | |
------------------------------+-------+---------+--------+---------+----------- | |
Client, client verifies first | - | - | 1 | - | - |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
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
browser = 'wdgaB1CilGA-S_s2' # Streams HIGH/LOW Quality over RTMP, FLAC and Videos over HTTP, but many Lossless Streams are encrypted. | |
android = 'kgsOOmYk3zShYrNP' # All Streams are HTTP Streams. Correct numberOfVideos in Playlists (best Token to use) | |
ios = '_DSTon1kC8pABnTw' # Same as Android Token, but uses ALAC instead of FLAC | |
native = '4zx46pyr9o8qZNRw' # Same as Android Token, but FLAC streams are encrypted | |
audirvana = 'BI218mwp9ERZ3PFI' # Like Android Token, supports MQA, but returns 'numberOfVideos = 0' in Playlists | |
amarra = 'wc8j_yBJd20zOmx0' # Like Android Token, but returns 'numberOfVideos = 0' in Playlists | |
# Unkown working Tokens | |
token1 = 'P5Xbeo5LFvESeDy6' # Like Android Token, but returns 'numberOfVideos = 0' in Playlists | |
token2 = 'oIaGpqT_vQPnTr0Q' # Like token1, but uses RTMP for HIGH/LOW Quality | |
token3 = '_KM2HixcUBZtmktH' # Same as token1 |
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
// Based on https://gist.github.com/CodesInChaos/ef914909941ce7caf514 | |
// Uses libsodium library | |
// Not storing array, simply printing out | |
void cached_to_precomp(ge_precomp* preComp, ge_cached* cached) | |
{ | |
fe inverse; | |
fe_invert(inverse, cached->Z); | |
fe_mul(preComp->yminusx, cached->YminusX, inverse); | |
fe_mul(preComp->yplusx, cached->YplusX, inverse); |
NewerOlder