Skip to content

4ndre4s/random-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-token.xyz

Just visit https://random-token.xyz/LENGTH to receive your pseudo-random token! Build Status

wget:

wget https://random-token.xyz/LENGTH

PHP:

$token = file_get_contents("https://random-token.xyz/LENGTH");

Java:

private static String fetchToken(int length) throws IOException {
        URL url = new URL("https://random-token.xyz/" + length);
        
        InputStreamReader inputStreamReader = new InputStreamReader(url.openStream());
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
        
        StringBuilder tokenBuiler = new StringBuilder();
        String line;
        
        while ((line = bufferedReader.readLine()) != null) {
            tokenBuiler.append(line);
        }
        
        return tokenBuiler.toString();
}

You can get Tokens between 1 and 200 characters in length.

Coming features:

  • no token collision
  • choice between upper-/lower-case, numbers or mix

About

get pseudo-random tokens with a specified length

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages