I hereby claim:
- I am phenomax on github.
- I am phenomax (https://keybase.io/phenomax) on keybase.
- I have a public key whose fingerprint is C6F0 FD8F 4A71 E73E B1E9 7F5E 742A 58B4 F865 8423
To claim this, I am signing this object:
extern crate rand; | |
extern crate argon2rs; | |
use rand::distributions::{Range, IndependentSample}; | |
use rand::OsRng; | |
use std::{thread, time}; | |
fn main() { | |
let alphabet = ["9", "A", "B", "C", "D", "E", "F", "G", "H", "I", | |
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", |
I hereby claim:
To claim this, I am signing this object:
/** | |
* @param $str the string to check | |
* @return bool whether the String $str is a valid ip or not | |
*/ | |
function isValidIP($str) | |
{ | |
/** | |
* Alternative solution using filter_var | |
* | |
* return (bool)filter_var($str, FILTER_VALIDATE_IP); |