Wonderjar's Blog

加解密简单总结

Common
Hash算法加密例如md5, sha等 单向不可还原,利用多次取余,一个结果对应无穷多的原始值,只能做验证 对称加密A与B之间之间的通讯数据都用同一套的密钥来进行加密解密 非对称加密例如RSA等 用公钥和私钥来加解密的算法。打个比方,A 的公钥加密过的东西只能通过 A 的私钥来解密;同理,A ...
Read more

Base64

Common
二进制到字符串的转换方法。Base64是一种最常见的二进制编码方法。 转化后可能会增加长度,但至少提供了一串可读的字符串。 由于标准的Base64编码后可能出现字符+和/,在URL中就不能直接作为参数,所以又有一种”url safe”的base64编码,其实就是把字符+和/分别变成-和_: ...
Read more

rabbitmqadmin CMD

Server
./rabbitmqadmin -u XXX -p XXX -V / list queues./rabbitmqadmin -u XXX -p XXX -V / list bindings./rabbitmqadmin -u XXX -p XXX -V / list exchanges ./ ...
Read more

Yarn Workspace

Frontend
StructureRoot A B C Root package.json123456"private": true,"workspaces": [ "A", "B", "C"], ...
Read more

crontabCmd

Server
crontab -lcrontab -e 123456751 * * * * root run-parts /etc/cron.hourly24 7 * * * root run-parts /etc/cron.daily22 4 * * 0 root run-parts /etc/cron ...
Read more

操作Dom

Javascript
修改一个node的class 1234567891011document.getElementById("MyElement").className = 'MyClass';document.getElementById("MyElement ...
Read more

dockerCmd

sudo docker exec -it XXXX /bin/bash
Read more

title: reactFiberdate: 2019-03-25 16:48:53tags: React categories: ReactGoals,pause work and come back to it later.assign priority to different ty ...
Read more

margin为负产生的影响

CSS
双飞燕布局https://codepen.io/anon/pen/LaazGm
Read more

React SetState

React
1234// Inside React DOMconst inst = new YourComponent();inst.props = props;inst.updater = ReactDOMUpdater; 12345// A bit simplifiedsetState(partia ...
Read more
Prev Next