Gaëtan Leurent und Thomas Peyrin melden das sha-1 als hash Funktion tot ist. Somit gesellt es sich zu MD5, welches schon seit langen Jahren nicht mehr als hash Funktion zu gebrauchen ist. Als Ersatz wird SHA-256 oder SHA-3 empfohlen.
Category: Entwicklung
Webentwicklungg, Programmieren, Software, Server… irgendwie alles was in den Bereich Computer und Entwicklung fällt
Anything regarding web-development
Find and delete all node_modules and bower_components in all directories
If you would like to delete all node_modules and bower_components in all directories relative to the current, use the following commands:
|
1 2 |
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + find . -name "bower_components" -type d -prune -exec rm -rf '{}' + |
Dart vs Go performance (http)
Dart vs Go Dartlang vs Golang HTTP performance A simple test
MySQL 5.7 Reset Root Password
The most simple way to reset the root password of MySQL 5.7 on CentOS 7
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
systemctl stop mysqld systemctl set-environment MYSQLD_OPTS="--skip-grant-tables" systemctl start mysqld mysql -u root mysql> UPDATE mysql.user SET authentication_string = PASSWORD('YourNewPassword') WHERE User = 'root' AND Host = 'localhost'; mysql> FLUSH PRIVILEGES; mysql> quit systemctl stop mysqld systemctl unset-environment MYSQLD_OPTS systemctl start mysqld mysql -u root -p |
Golang self-signed certificate
The simplest way to create a self-signed certificate with Go:
|
1 |
go run /usr/lib/go/src/crypto/tls/generate_cert.go -host localhost |
or ecdsa 10 years duration
|
1 |
go run /usr/lib/go/src/crypto/tls/generate_cert.go -duration 87600h0m0s -ecdsa-curve P256 -host localhost |
or ed25519 10 years duration
|
1 |
go run /usr/lib/go/src/crypto/tls/generate_cert.go -duration 87600h0m0s -ed25519 -host localhost |