Create Password Snippets

09 February, 2013   

Very simple small code to generate random password

PHP code to create a human readable string that will look more close to dictionary words, useful for captchas.

18 February, 2013   

A C++ algorithm which encrypts an alphanumeric password.

30 March, 2013   

The characters in a password field are masked (shown as asterisks or circles).

The below snippet will create a MySQL user and grant them all permissions on the given database.

Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose the desired length and strength for the password and it is very flexible.

An example of HTML form control where used-password input box

22 January, 2011   

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

28 January, 2016   

MD5-based block cipher (MDC-like), which works in 128bit CFB mode.

13 April, 2011   

Connecting to a MySQL database to make the data from the database available in your Web application, can be done in many different ways. Here are two often used methods.

07 April, 2013   

A simple example code for user login with a login form and database query

05 July, 2012   

Backup MySQL Database to SQL File with mysqldump

01 September, 2014   

MySQL code example to assign random passwords

Basic Database Connection, Random Query, Display Result

Exam code to backup MySQL Database to SQL File

The mysql_fetch_assoc "converts" a row from a table into an associative array. The mysql_insert_array "converts" an associative array into a row in a table.

07 April, 2014   

Adding a linked server to MSSQL account - particularly a MYSQL server

How to serve configuration settings from a config.ini file

Code example for Connecting to Oracle using Java JDBC

01 March, 2011   

Function that generates random passwords.