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, 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 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