Creating the order number

-1

Good morning!

In a cart system (virtual store), what is the most usual way to create the order number? Remembering that the user does not have to log in.

I await.

    
asked by anonymous 19.05.2018 / 15:00

1 answer

-1

You can create an encrypted key using the hash () and #:

$codigo=hash('crc32',hash('sha512',microtime()));

It creates a sha512 of microtime() and then a crc32 which is a smaller encryption, you can conclude with a strtoupper () to maintain an uppercase pattern.

In short, you can use creativity to unlock various possibilities for this wide-ranging situation.

    
19.05.2018 / 15:37