Uncategorized

PyScript (alpha version) code demo

PyConUS2022 announced PyScript to execute Python code in the browser, relying on pyodide (CPython for WebAssembly). It is much closer to the web development experience than pyodide. The published alpha version output Python version information is: 3.10.2 (main, Apr 9 2022, 20:52:01) [Clang 14.0.0 (https://github.com/llvm/llvm-project 78e87970af888bbbd5652c31f3a8 Install Just add HTML tags to load the files: …

Continue Reading
Uncategorized

Index of ReactJS Source Code

React's design is often discussed, but because of the many related documents, the source code reads more tired.Just recently saw under the Hood:reactjs this project shared a flowchart of the React Core code (MIT Protocol), taking several of them as a directory index when writing this article for reading source. The article is divided into …

Continue Reading
Uncategorized

AES Between Python, Go, Javascript(NodeJS) and PHP

AES Wikipedia: https://en.wikipedia.org/wiki/Advanced_Encryption_Standard. AES needs Key, IV and PKCS. Use 256 bits key length, Python/Go can auto choice by key length your passed. Named `MCRYPT_RIJNDAEL_128` in PHP5, Nodejs/PHP7.1 is aes-256-cbc. Use CBC mode due to ECB no IV. Key is `AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA` (256 bits),IV is `AAAAAAAAAAAAAAAA`(128bits). Python use pycrypto(pip install pycrypto),NodeJS require crypto(npm install crypto),PHP5 need …

Continue Reading