PHP8 rnp_locate_key

2024-03-14 09:11 更新

(PECL rnp >= 0.1.1)

rnp_locate_key — 搜索密鑰

說明

rnp_locate_key(RnpFFI $ffi, string $identifier_type, string $identifier): string|false

注意:按 userid 搜索時,僅檢查有效的 userid。

參數(shù)

ffi

rnp_ffi_create返回的 FFI 對象。

identifier_type

標(biāo)識符類型字符串:“userid”、“keyid”、“fingerprint”、“grip”。

identifier

“userid”類型的 PGP 用戶 ID(名稱和電子郵件),十六進(jìn)制字符串 相應(yīng)地代表密鑰 ID、指紋或密鑰手柄。

返回值

Returns hexadecimal fingerprint of the key found on success 或者在失敗時返回 false.


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號