Random Password Generator

Random Password API

The Passphrase random password appliction programming interface (API) uses the Web Service Definition Language (WSDL 1.1) and Simple Object Access Protocol (SOAP 1.2) to provide a random password in response to a simple call.

In web development, it is occasionaly necessary or desirable to create a random password — for example, when a user has forgotten a password. While the code do make such a password is not hard to write, the author of this web service finds it easier to make a simple SOAP call.

WSDL Location

To connect to this web service, load the WSDL into your SOAP client from this URL.

http://sparkler.co/password/pass.wsdl

API Operations

This web service has a single operation, getPassword(), which accepts two parameters. The first parameter is either "standard" or "special." The second parameter is an integer representing the number of characters you wish to return.

Operation Description Return Value
getPassword() Return a randomly generated password. string

The accepted parameters for getPassword().

Parameter Description
standard Return an aplhanumeric string consisting of the numbers 1 to 9 and the English alphabet in both upper and lower case.
special Return a string consisting of the numbers 1 to 9, the English alphabet in both upper and lower case, and the characters !@#$%^&*()+=?><[]{}.

Code Example

PHP
$soap = new SoapClient("http://sparkler.co/password/pass.wsdl"); $password = $soap->getPassword("special" , 12);