This file contains 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
/** | |
* Create and validate JWT tokens based on HS256 (HMAC with SHA-256) without requiring any particular PHP extensions or | |
* 3rd party libraries. Works with PHP 8.1 and below. Supports issuer and timestamp validation, result memoization and | |
* access to the payload. Have a look at the other great libraries out there, but if you need to validate self-issued | |
* access tokens and want to keep it simple, this one might be just right. | |
*/ | |
class SimpleJWT | |
{ | |
private array $data = []; | |
private string $header; |
This file contains 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
const fib=(a=>(b=>n=>(c=>(c+(n%2||-1)/c)/a)(b**n))((1+a)/2))(5**.5); | |
// works up to fib(1474) before only returning Infinity |
This file contains 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
javascript:void((m=>{while(prompt('',[,,,,,,].fill(0).map(a=>((a,b,c,d)=>d(b).replace('q','qu')+d(a)+d(c))(...['aeiouyaeioueo','bcdghjkpqtvwzbcdgkpt','flmnrsxflmnrslmnrs'].map(s=>s.split('')),a=>a[m.floor(m.random()*a.length)])).join('')));})(Math)) |