Migrate customers table from MijoShop to OpenCart 3

When we migrate customers from MijoShop to OpenCart there is a little problem: the methods to hash passwords are different and thus when our customers try to login the passwords do not match. In this post I will show you how to migrate and fix the problem. ...

June 2, 2019 · 12 min · 2419 words · Parzibyte

C: convert string to lowercase and uppercase

Introduction Today we will see how to convert a string in C to uppercase. We will also see how to convert a string to lowercase. That is, to convert something like “Hello World” to “hello world”. Or something like “Good night” to “GOOD NIGHT”. For this we will use some functions that the standard library has: tolower and toupper. ...

April 2, 2019 · 2 min · 422 words · Parzibyte

PHP: Generate cryptographically secure token

Intro Sometimes we need to create a random string or token using PHP. For example, it’s quite common that when we want to reset our password on some website a message is sent to the mail we registered. Probably the message have a link like this: site.com/reset-pass?token=123 Where 123 is the token. Today we will see how to create a token cryptographically secure using PHP. We can use this token as a password or as random string to reset something. This works for PHP 5 and for PHP 7. ...

April 1, 2019 · 2 min · 379 words · Parzibyte