GC_Application_Passwords::chunk_password()

最后更新于:2021-11-26 09:13:28

GC_Application_Passwords::chunk_password( string$raw_password)

Sanitizes and then splits a password into smaller chunks.

参数

$raw_password

(string) (Required) The raw application password.

响应

(string) The chunked password.

源文件

文件: gc-includes/class-gc-application-passwords.php

	public static function chunk_password( $raw_password ) {
		$raw_password = preg_replace( '/[^a-zd]/i', '', $raw_password );

		return trim( chunk_split( $raw_password, 4, ' ' ) );
	}