Derive the WIF from the given passphrase.

@param string                                             $passphrase
@param \ArkEcosystem\Crypto\Networks\AbstractNetwork|null $network

@return string
483901
public static function fromPassphrase(string $passphrase, AbstractNetwork $network = null): string
    {
        return PrivateKey::fromPassphrase($passphrase)->toWif($network);
    }
150130
public function setSSLCert($certPath, $passPhrase = null)
    {
        $this->soapOptions['local_cert'] = realpath($certPath);
        if (isset($passPhrase) && trim($passPhrase) != "") {
            $this->soapOptions['passphrase'] = $passPhrase;
        }
    }
598504
public function generatePassphrase($num_words = 4)
    {
        if (count($this->dictionary) < $num_words)
        {
            throw new UnderflowException(
                "Not enough words loaded to generate a passphrase of $num_words words"
            );
        }

        $words = array();
        $attempt = 0;
        while (count($words) < $num_words)
        {
            ++$attempt;
            $s = random_int(0, count($this->dictionary) - 1);
            $word = $this->dictionary[$s];
            if (!in_array($word, $words) || $attempt > 4 * $num_words)
                $words[] = $word;
        }
        return implode(" ", $words);
    }
1018953
public function getWIFPrivateKey($WIF_address = null)
    {
        if (empty($WIF_address) === true) {
            return ($this->private_key != '') ? $this->private_key : '';
        } else {
            return $this->decodeWIF($WIF_address);
        }
    }
1309353
public function generatePassword()
    {
        $salts = Site::salts(12);
        $special_char1 = '~<>?|:.(),';
        $special_char2 = '!@#$%^&*_+-*+';
        $pass = $special_char2.$salts.$special_char1;

        return str_shuffle($pass);
    }
844251
protected static function getAuthHeader($scheme, $username, $password = null)
	{
		if (!$password) return $scheme . ' ' . $username;
		return $scheme . ' ' . base64_encode($username . ':' . $password);
	}
23076
public function getPassPhrase($secret) {
    $passPhrase = '';

    $chunks = explode('-',chunk_split($secret, 8, '-'));
    for($i = 0; $i <= sizeof($chunks); $i++) {
      if(trim($chunks[$i]) === '') {
        break;
      }
      $x = hexdec($chunks[$i]);
      $w[$i][1] = $x % $this->n;
      $w[$i][2] = ($x / $this->n + $w[$i][1]) % $this->n;
      $w[$i][3] = ($x / pow($this->n, 2) + $w[$i][2]) % $this->n;

      $passPhrase .= $this->dictionary[$w[$i][1]].' '.
                     $this->dictionary[$w[$i][2]].' '.
                     $this->dictionary[$w[$i][3]].' ';

    }
    return $passPhrase;
  }
896173
public function hash(string $password): string
    {
        if ('' === $password) {
            throw EmptyPasswordException::create();
        }

        return password_hash($password, PASSWORD_DEFAULT);
    }
1089713
public static function fromPassphrase(string $passphrase): EcPrivateKey
    {
        $passphrase = Hash::sha256(new Buffer($passphrase));

        return (new PrivateKeyFactory())->fromHexCompressed($passphrase->getHex());
    }
1102897
def create_passphrase(bits_of_entropy=None, num_words=None,
                      language='english', word_source='wiktionary'):
    
    wordlist = get_wordlist(language, word_source)

    if not num_words:
        if not bits_of_entropy:
            bits_of_entropy = 80
        num_words = get_num_words_with_entropy(bits_of_entropy, wordlist)

    return ' '.join(pick_random_words_from_wordlist(wordlist, num_words))
956615
def _passphrase_callback(passphrase):
    '''
    
    '''
    def f(*args):
        return salt.utils.stringutils.to_bytes(passphrase)
    return f
619700
public function password(string $defaultPassword = null)
    {
        if (!$this->parsedUri->hasUser()) {
            return null;
        }

        if ($this->parsedUri->hasPassword()) {
            return $this->parsedUri->password();
        }

        return $defaultPassword;
    }
868707
public function getPassWordHash()
    {
        if (empty($this->wpPassWordHash)) {
            $this->wpPassWordHash = new PasswordHash(8, true);
        }

        return $this->wpPassWordHash;
    }
761932
public static function fromWif(string $wif, AbstractNetwork $network = null): EcPrivateKey
    {
        return (new PrivateKeyFactory())->fromWif($wif, $network);
    }
886747
public function getPassName($passName, PassInterface $pass)
    {
        $passNameSanitised = preg_replace("/[^a-zA-Z0-9]+/", "", $passName);
        return strlen($passNameSanitised) != 0 ? $passNameSanitised : $pass->getSerialNumber();
    }
303681
public function sign(string $passphrase): AbstractTransaction
    {
        $publicKey = PublicKey::fromPassphrase($passphrase);
        $this->transaction->asset['delegate']['publicKey'] = $publicKey->getHex();

        parent::sign($passphrase);

        return $this;
    }
223548
public function setAPNSPemAsString($pemContent, $passphrase) {
        if (isset($this->handlers[Types::OS_IOS]) && $this->handlers[Types::OS_IOS] instanceof AppleNotification) {
            /** @var AppleNotification $appleNotification */
            $appleNotification = $this->handlers[Types::OS_IOS];
            $appleNotification->setPemAsString($pemContent, $passphrase);
        }
    }