生物特徵應用功能的啟用方法、系統、裝置及設備Enabling method, system, device and equipment of biometric application function
本發明實施例涉及資訊技術領域,尤其涉及生物特徵應用功能的啟用方法、系統、裝置及設備。Embodiments of the present invention relate to the field of information technology, and in particular, to a method, system, device, and equipment for enabling a biometric application function.
在現有技術中,根據用戶的生物特徵進行支付/登錄/解鎖已很常見。而生物特徵是用戶隱私,為避免隱私洩露,通常需要將用戶的生物特徵透過作業系統錄入並儲存,其它應用在需要生物特徵進行身份驗證時,可以透過請求作業系統調用相應的功能。
如果用戶實現沒有透過作業系統錄入相應的生物特徵,則當用戶想要在某個應用啟用相應的生物特徵應用功能(例如,指紋登錄/解鎖/支付等等)時,就需要用戶先切換到本地設備的系統中,錄入並儲存相應的生物特徵。然後切換回應用,執行啟用生物特徵應用功能的操作。
基於此,需要一種可以快速啟用生物特徵應用功能的方案。In the prior art, payment/login/unlocking based on the user's biometric feature is very common. The biometric feature is the user's privacy. To avoid privacy leaks, it is usually necessary to enter and store the user's biometric feature through the operating system. When other applications need biometrics for identity verification, they can call the corresponding function by requesting the operating system.
If the user does not enter the corresponding biometric feature through the operating system, when the user wants to enable the corresponding biometric application function (for example, fingerprint login/unlock/payment, etc.) in an application, the user needs to switch to the local In the system of the device, enter and store the corresponding biometrics. Then switch back to the application and perform the operation to enable the biometric application function.
Based on this, there is a need for a solution that can quickly activate the biometric application function.
針對現有生物特徵應用功能啟用不便的問題,為實現快速啟用生物特徵應用功能,提高用戶體驗,本發明實施例提供一種生物特徵應用功能的啟用方法,包括:
應用程式接收用戶輸入的開啟生物特徵應用功能的確認指令;
所述應用程式發起作業系統是否預先錄入過用戶生物特徵的檢測;
在檢測結果為否的情形下,所述作業系統調用生物特徵錄入功能,以及,保持所述應用程式的介面在前端展示,並展示與所述生物特徵錄入功能相關的提示介面,獲取用戶的生物特徵;
所述應用程式確認所述作業系統錄入生物特徵功能成功後,開啟用戶的生物特徵應用功能。
同時,本發明實施例還提供另一種生物特徵應用功能的啟用方法,包括:
作業系統接收應用程式所發送的查詢請求並執行查詢操作,所述查詢操作用於查詢作業系統是否預先錄入過用戶生物特徵;
若查詢結果為沒有,調用生物特徵錄入功能,保持所述應用程式的介面在前端展示,並展示與所述生物特徵錄入功能相關的提示介面;
獲取用戶的生物特徵並儲存;
返回錄入生物特徵成功的確認消息至所述應用程式,以便應用程式開啟用戶的生物特徵應用功能。
同時,本發明實施例還提供再一種生物特徵應用功能的啟用方法,包括:
應用程式接收用戶輸入的開啟生物特徵應用功能的確認指令;
所述應用程式發起作業系統是否預先錄入過用戶生物特徵的檢測,以使作業系統在檢測結果為否的情形下,調用用戶生物特徵錄入功能;
接收作業系統所返回的錄入生物特徵成功的確認消息,開啟用戶的生物特徵應用功能。
對應的,本發明實施例提供一種生物特徵應用功能的啟用系統,包括應用程式和作業系統,
所述應用程式,接收用戶輸入的開啟生物特徵應用功能的確認指令;所述應用程式發起作業系統是否預先錄入過用戶生物特徵的檢測;在確認所述作業系統錄入生物特徵功能成功後,開啟用戶的生物特徵應用功能;
所述作業系統,在檢測結果為否的情形下,調用生物特徵錄入功能,以及,保持所述應用程式的介面前端展示,並展示與所述生物特徵錄入功能相關的提示介面;獲取用戶的生物特徵。
對應的,本發明實施例提供另一種生物特徵應用功能的啟用裝置,包括:
查詢模組,作業系統接收應用程式所發送的查詢請求並執行查詢操作,所述查詢操作用於查詢作業系統是否預先錄入過用戶生物特徵;
調用模組,若查詢結果為沒有,調用生物特徵錄入功能,保持所述應用程式的介面在前端展示,並展示與所述生物特徵錄入功能相關的提示介面;
獲取模組,獲取用戶的生物特徵並儲存;
發送模組,返回錄入生物特徵成功的確認消息至所述應用程式,以便應用程式開啟用戶的生物特徵應用功能。
對應的,本發明實施例提供再一種生物特徵應用功能的啟用裝置,包括:
接收模組,應用程式接收用戶輸入的開啟生物特徵應用功能的確認指令;
檢測模組,所述應用程式發起作業系統是否預先錄入過用戶生物特徵的檢測,以使作業系統在檢測結果為否的情形下,調用用戶生物特徵錄入功能;
開啟模組,接收作業系統所返回的錄入生物特徵成功的確認消息,開啟用戶的生物特徵應用功能。
本發明實施例所提供的方案,當用戶沒有預先在作業系統中錄入過生物特徵時,透過應用程式中開通生物特徵應用功能的流程中,嵌入作業系統設置,可以在保持應用介面在前端展示的同時,錄入用戶的生物特徵,並成功開啟用戶生物應用功能。避免了多個介面進行手動切換,方便用戶的使用,提高用戶體驗,提高用戶的開通率。
應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,並不能限制本發明實施例。
此外,本發明實施例中的任一實施例並不需要達到上述的全部效果。
In view of the inconvenience of enabling the existing biometric application functions, in order to quickly enable the biometric application functions and improve user experience, an embodiment of the present invention provides a method for enabling the biometric application functions, including:
The application program receives the confirmation instruction input by the user to activate the biometric application function;
The application program initiates the detection of whether the operating system has pre-registered the user's biometric feature;
If the detection result is negative, the operating system invokes the biometric feature entry function, and keeps the interface of the application program displayed on the front end, and displays a prompt interface related to the biometric feature entry function to obtain the user's biometric feature;
After the application program confirms that the operating system has successfully entered the biometric feature function, it starts the user's biometric feature application function.
At the same time, the embodiment of the present invention also provides another method for enabling the biometric application function, including:
The operating system receives the query request sent by the application program and executes a query operation, the query operation is used to query whether the operating system has pre-registered the user's biometric feature;
If the query result is no, call the biometric input function, keep the interface of the application program displayed at the front end, and display a prompt interface related to the biometric input function;
Obtain and store the user's biometrics;
Return a confirmation message of successful biometric entry to the application, so that the application can activate the user's biometric application function.
At the same time, the embodiment of the present invention also provides another method for enabling the biometric application function, including:
The application program receives the confirmation instruction input by the user to activate the biometric application function;
The application program initiates the detection of whether the operating system has pre-registered the user's biometric feature, so that the operating system calls the user's biometric feature entry function when the detection result is negative;
Receive the confirmation message of successful biometric entry returned by the operating system, and start the user's biometric application function.
Correspondingly, an embodiment of the present invention provides a biometric application function enabling system, including an application program and an operating system,
The application program receives a confirmation instruction input by the user to activate the biometric application function; the application program initiates a detection of whether the operating system has entered the user's biometric feature in advance; after confirming that the operating system has successfully entered the biometric feature function, the user is activated biometric application functions;
The operating system, when the detection result is negative, invokes the biometric input function, and maintains the front-end display of the interface of the application program, and displays a prompt interface related to the biometric input function; obtains the user's biometric feature.
Correspondingly, an embodiment of the present invention provides another device for enabling biometric application functions, including:
Inquiry module, the operating system receives the query request sent by the application program and executes the query operation, and the query operation is used to query whether the operating system has pre-registered the user's biometric feature;
Calling the module, if the query result is none, calling the biometric input function, keeping the interface of the application program displayed at the front end, and displaying a prompt interface related to the biometric input function;
Get the module, get the user's biometric feature and store it;
The module is sent to return a confirmation message that the biometric feature is successfully entered to the application program, so that the application program starts the user's biometric feature application function.
Correspondingly, the embodiment of the present invention provides another device for enabling biometric application functions, including:
The receiving module, the application program receives the confirmation instruction input by the user to open the biometric application function;
The detection module, the application program initiates the detection of whether the operating system has pre-registered the user's biometric feature, so that the operating system calls the user's biometric feature entry function when the detection result is negative;
Open the module, receive the confirmation message of successful biometric entry returned by the operating system, and start the user's biometric application function.
In the solution provided by the embodiment of the present invention, when the user has not entered the biometric feature in the operating system in advance, through the process of activating the biometric application function in the application program, the operating system setting can be embedded, and the application interface can be displayed at the front end. At the same time, the user's biometric feature is entered, and the user's biometric application function is successfully opened. It avoids manual switching of multiple interfaces, facilitates the use of users, improves user experience, and increases the activation rate of users.
It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and are not intended to limit the embodiments of the present invention.
In addition, any one of the embodiments of the present invention does not need to achieve all the above-mentioned effects.
為了使本領域技術人員更好地理解本發明實施例中的技術方案,下面將結合本發明實施例中的圖式,對本發明實施例中的技術方案進行詳細地描述,顯然,所描述的實施例僅僅是本發明的一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員所獲得的所有其他實施例,都應當屬於保護的範圍。
在當前技術中,為了保護用戶隱私以及便於管理,對於用戶的生物特徵,一般都透過作業系統調用相應的硬體模組,進行錄入並儲存存,並且應用程式沒有許可權直接調用用戶的生物特徵。即用戶的生物特徵資訊和應用程式是隔離的。所述生物特徵包括指紋、虹膜、聲紋、面部特徵等等。作業系統可以是Android系統,也可以是IOS系統。
本地的任一應用程式需要使用用戶的生物特徵進行身份驗證時,可以透過向作業系統進行請求,得到用戶有關的生物特徵資訊。如圖1所示,圖1為當前技術中涉及到生物特徵時應用程式、作業系統和設備硬體的架構示意圖。在該示意圖中的用戶設備可以是諸如智慧型手機、平板電腦等設備,其中的採集硬體可以包括諸如指紋採集模組、攝影鏡頭、麥克風等等硬體。
因此,當在應用程式中需要使用到用戶的生物特徵進行驗證,以開啟某項功能時,例如,開啟指紋支付或者人臉登錄,如果作業系統中事先沒有錄入過用戶的生物特徵,那麼應用程式就無法向作業系統進行調用。在這種情況下,用戶首先需要離開當前的應用程式的介面,並切換至作業系統的相應錄入介面,錄入生物特徵,之後再切換回來應用程式,以開啟指紋支付或者人臉登錄。
基於此,本發明實施例提供一種生物特徵應用功能的啟用方案,透過在應用程式中直接嵌入作業系統的相關功能,在用戶沒有錄入過生物特徵的情況下,不用切換出應用程式介面,也能開啟應用程式中的生物特徵應用功能。
以下結合圖式,詳細說明本發明各實施例提供的技術方案。如圖2所示,圖2是本發明實施例提供的一種生物特徵應用功能的啟用方法的流程示意圖,該流程具體包括如下步驟:
S201,應用程式接收用戶輸入的開啟生物特徵應用功能的確認指令。
生物特徵應用功能可以是登錄、解鎖或者支付等。在應用程式介面中,可以展示相應的設置項,以提供給用戶選擇開啟還是關閉某一項生物特徵應用功能。
S203,所述應用程式發起作業系統是否預先錄入過用戶生物特徵的檢測。
如前所述,由於用戶生物特徵是由作業系統錄入並統一管理,應用程式沒有直接接觸用戶生物特徵的許可權。
因此,在一種實施方式下,應用程式可以發起檢測,執行檢測的方式可以是應用程式向作業系統發起查詢請求。在作業系統中,可以預設標誌位元用於對作業系統是否錄入過指定的生物特徵進行標記,標誌位元的取值表徵了“有”或者“無”。例如,將標誌位元的缺省預設值設置為“0”,用於表徵沒有指紋,在用戶錄入過指紋後,將該標誌位元的取值修改為“1”,在用戶刪除了該指紋後,將標誌位元的取值再次修改為“0”。從而,作業系統可以直接查詢標誌位元的取值來判定作業系統是否已經錄入過用戶生物特徵。
作業系統在接收到該查詢請求後,可以直接查詢標誌位元的取值,從而判定作業系統是否預先錄入過用戶生物特徵,得到檢測結果。
在另一種實施方式下,也可以是應用程式對於可以訪問的某些和用戶生物特徵相關的檔進行查詢。例如,在作業系統中如果事先已經錄入用戶生物特徵的情形下,此時,若應用程式有需要,作業系統可以發送一些與用戶生物特徵相關的檔或者資訊至應用程式,例如,發送一個根據用戶生物特徵產生的不可逆金鑰檔(例如,雜湊值)至應用程式,應用程式接收該不可逆金鑰檔並儲存至指定的路徑。
不可逆金鑰檔指的是該檔是對用戶生物特徵採用不可逆的加密演算法所產生的,無法根據不可逆金鑰檔反推出用戶生物特徵,保證用戶隱私不會洩露。不可逆的加密演算法可以是MD5(Message-Digest Algorithm 5)演算法或者不可逆加密標準(Secure Hash Standard,SHS)等等。由於用戶生物特徵的唯一性,不可逆金鑰檔一般也具有唯一性。
在這種實施方式下,應用程式可以直接查詢指定路徑下是不是有對應的不可逆金鑰檔,如果有,說明系統已經錄入過用戶生物特徵。否則,就是還沒有錄入。
S205,在檢測結果為否的情形下,所述作業系統調用生物特徵錄入功能,以及,保持所述應用程式的介面在前端展示,並展示與所述生物特徵錄入功能相關的提示介面,獲取用戶的生物特徵。
如前所述,作業系統可以直接獲取檢測結果,或者應用程式可以將檢測結果通知作業系統。在檢測結果為否的情形下,作業系統調用生物特徵錄入功能,在保持所述應用程式的介面在前端展示的情形下,作業系統展示與所述生物特徵錄入功能相關的提示介面,獲取用戶的生物特徵。提示介面中一般僅展示一些與錄入流程相關的提示資訊,錄入過程可以由作業系統調用相應的指紋採集模組、攝像頭、麥克風等等硬體來實現。
具體的展示方式可以是在應用程式的介面中嵌入上述提示介面,或者,將上述提示介面懸浮式的展示於應用程式的介面中,或者,將上述提示介面和應用程式的介面進行分屏展示。如圖3所示,圖3為本發明實施例所提供的一種提示介面在應用程式的介面中展示的示意圖。在該示意圖中,提示介面被嵌入在應用程式的介面的底部。
需要說明的是,在這個過程中,雖然應用程式的介面依然在前端展示,但是應用程式本身並不會參與至生物特徵錄入的進程中。錄入得到的生物特徵也是由作業系統所儲存存,並設置相應的存取權限,例如,只有作業系統有讀取、刪除許可權。
此外,在這個過程中,錄入的生物特徵也可以是部分的用戶特徵資訊,只需該部分的用戶特徵資訊可以用於唯一標識該用戶即可。例如,指紋是指人的手指末端正面皮膚上凸凹不平產生的紋線。紋線有規律的排列形成不同的紋型。紋線的起點、終點、結合點和分叉點,稱為指紋的特徵點,在錄入指紋的過程中,不錄入指紋全貌,而只錄入上述特徵點。這樣同樣可以起到標識用戶的作用,並且即使其它人或者應用程式獲取了該特徵點,也沒有辦法反向推出指紋圖像的,進一步保護了用戶隱私。
S207,所述應用程式確認所述作業系統錄入生物特徵功能成功後,開啟用戶的生物特徵應用功能。
作業系統在錄入生物特徵功能成功之後,可以發送一個確認資訊至應用程式,應用程式接收到該確認資訊即可以知道已經錄入成功,並在應用程式中開啟該確認指令所指定開啟的生物特徵應用功能。
在一種實施方式下,作業系統在錄入生物特徵功能成功之後,還可以直接根據該用戶生物特徵,採用不可逆的加密演算法產生不可逆金鑰檔。並且發送錄入成功的消息和該不可逆金鑰檔至應用程式,或者只發送不可逆金鑰檔至應用程式。應用程式即可以知道已經錄入成功。並且儲存存該不可逆金鑰檔,在下次根據用戶生物特徵進行登錄、解鎖或者支付時,可以根據所述不可逆金鑰檔進行用戶身份驗證,同時,還保證了應用程式不會洩露用戶隱私。
本發明實施例所提供的方案,當用戶沒有預先在作業系統中錄入過生物特徵時,透過應用程式中開通生物特徵應用功能的流程中,嵌入作業系統設置,可以在保持應用介面在前端展示的同時,錄入用戶的生物特徵,並成功開啟用戶生物應用功能。避免了多個介面進行手動切換,方便用戶的使用,提高用戶體驗,提高用戶的開通率。
同時,本發明實施例提供一種應用於作業系統上的生物特徵應用功能的啟用方法,如圖4所示,圖4為本發明實施例所提供的應用於作業系統上的生物特徵應用功能的啟用方法的流程示意圖,包括:
S401,作業系統接收應用程式所發送的查詢請求並執行查詢操作,所述查詢操作用於查詢作業系統是否預先錄入過用戶生物特徵;
S403,若查詢結果為沒有,調用生物特徵錄入功能,保持所述應用程式的介面在前端展示,並展示與所述生物特徵錄入功能相關的提示介面;
S405,獲取用戶的生物特徵並儲存;
S407,返回錄入生物特徵成功的確認消息至所述應用程式,以便應用程式開啟用戶的生物特徵應用功能。
進一步地,在獲取用戶的生物特徵並儲存之後,還可以採用不可逆演算法加密所述用戶的生物特徵,產生不可逆金鑰檔,並且發送錄入生物特徵成功的確認消息和所述不可逆金鑰檔至應用程式。
同時,本發明實施例提供一種應用於應用程式上的生物特徵應用功能的啟用方法,如圖5所示,圖5為本發明實施例所提供的應用於應用程式上的生物特徵應用功能的啟用方法的流程示意圖,包括:
S501,應用程式接收用戶輸入的開啟生物特徵應用功能的確認指令;
S503,所述應用程式發起作業系統是否預先錄入過用戶生物特徵的檢測,以使作業系統在檢測結果為否的情形下,調用用戶生物特徵錄入功能;
S505,接收作業系統所返回的錄入生物特徵成功的確認消息,開啟用戶的生物特徵應用功能。
進一步地,應用程式還可以接收作業系統所返回的錄入生物特徵成功的確認消息和不可逆金鑰檔,並儲存所述不可逆金鑰檔,以便在以後執行生物特徵應用功能時,根據所述不可逆金鑰檔進行用戶身份驗證。
對應的,本發明實施例還提供一種生物特徵應用功能的啟用系統,包括應用程式和作業系統,
所述應用程式,接收用戶輸入的開啟生物特徵應用功能的確認指令;發起作業系統是否預先錄入過用戶生物特徵的檢測;在確認所述作業系統錄入生物特徵功能成功後,開啟用戶的生物特徵應用功能;
所述作業系統,在檢測結果為否的情形下,調用生物特徵錄入功能,以及,保持所述應用程式的介面前端展示,並展示與所述生物特徵錄入功能相關的提示介面;獲取用戶的生物特徵。
在所述系統中,所述生物特徵應用功能包括生物特徵解鎖、登錄或者支付。
在所述系統中,所述應用程式向作業系統發起是否預先錄入過用戶生物特徵的查詢請求,根據作業系統的查詢結果確定作業系統是否預先錄入過用戶生物特徵;或者,所述應用程式檢測指定路徑下是否儲存存有不可逆金鑰檔,所述不可逆金鑰檔由所述作業系統根據用戶生物特徵產生。
在所述系統中,所述應用程式,接收到作業系統所返回的不可逆金鑰檔之後,確認所述作業系統錄入生物特徵功能成功,所述不可逆金鑰檔由所述作業系統根據用戶生物特徵產生。
對應的,本發明實施例還提供一種作業系統方面的生物特徵應用功能的啟用裝置,如圖6所示,圖6為本發明實施例所提供的作業系統方面的生物特徵應用功能的啟用裝置的示意圖,包括:
查詢模組601,作業系統接收應用程式所發送的查詢請求並執行查詢操作操作,所述查詢操作用於查詢作業系統是否預先錄入過用戶生物特徵;
調用模組603,若查詢結果為沒有,調用生物特徵錄入功能,保持所述應用程式的介面在前端展示,並展示與所述生物特徵錄入功能相關的提示介面;
獲取模組605,獲取用戶的生物特徵並儲存;
發送模組607,返回錄入生物特徵成功的確認消息至所述應用程式,以便應用程式開啟用戶的生物特徵應用功能。
進一步地,所述裝置還包括加密模組609,採用不可逆演算法加密所述用戶的生物特徵,產生不可逆金鑰檔;所述發送模組607,發送錄入生物特徵成功的確認消息和所述不可逆金鑰檔至應用程式。
對應的,本發明實施例還提供一種作業系統方面的生物特徵應用功能的啟用裝置,如圖7所示,圖7為本發明實施例所提供的作業系統方面的生物特徵應用功能的啟用裝置的示意圖,包括:
接收模組701,應用程式接收用戶輸入的開啟生物特徵應用功能的確認指令;
檢測模組703,所述應用程式發起作業系統是否預先錄入過用戶生物特徵的檢測,以使作業系統在沒有錄入過用戶生物特徵的情況下,調用用戶生物特徵錄入功能;
開啟模組705,接收作業系統所返回的錄入生物特徵成功的確認消息,開啟用戶的生物特徵應用功能。
進一步地,所述開啟模組705,接收作業系統所返回的錄入生物特徵成功的確認消息和不可逆金鑰檔;所述裝置還包括儲存模組707,儲存所述不可逆金鑰檔,以便根據所述不可逆金鑰檔進行用戶身份驗證。
本發明實施例還提供一種電腦設備,其至少包括記憶體、處理器及儲存在記憶體上並可在處理器上運行的電腦程式,其中,處理器執行所述程式時實現圖2、圖4或者圖5任一所示的生物特徵應用功能的啟用方法。
圖8示出了本發明實施例所提供的一種更為具體的計算設備硬體結構示意圖,該設備可以包括:處理器1010、記憶體1020、輸入/輸出介面1030、通信介面1040和匯流排1050。其中處理器1010、記憶體1020、輸入/輸出介面1030和通信介面1040透過匯流排1050實現彼此之間在設備內部的通信連接。
處理器1010可以採用通用的CPU(Central Processing Unit,中央處理器)、微處理器、應用專用積體電路(Application Specific Integrated Circuit,ASIC)、或者一個或多個積體電路等方式實現,用於執行相關程式,以實現本發明實施例所提供的技術方案。
記憶體1020可以採用ROM(Read Only Memory,唯讀記憶體)、RAM(Random Access Memory,隨機存取記憶體)、靜態存放裝置,動態儲存裝置設備等形式實現。記憶體1020可以儲存作業系統和其他應用程式,在透過軟體或者韌體來實現本發明實施例所提供的技術方案時,相關的程式碼儲存存在記憶體1020中,並由處理器1010來調用執行。
輸入/輸出介面1030用於連接輸入/輸出模組,以實現資訊輸入及輸出。輸入輸出/模組可以作為元件配置在設備中(圖中未示出),也可以外接於設備以提供相應功能。其中輸入裝置可以包括鍵盤、滑鼠、觸控式螢幕、麥克風、各類感測器等,輸出設備可以包括顯示器、揚聲器、振動器、指示燈等。
通信介面1040用於連接通信模組(圖中未示出),以實現本設備與其他設備的通信交互。其中通信模組可以透過有線方式(例如USB、網路線等)實現通信,也可以透過無線方式(例如移動網路、WIFI、藍牙等)實現通信。
匯流排1050包括一通路,在設備的各個元件(例如處理器1010、記憶體1020、輸入/輸出介面1030和通信介面1040)之間傳輸資訊。
需要說明的是,儘管上述設備僅示出了處理器1010、記憶體1020、輸入/輸出介面1030、通信介面1040以及匯流排1050,但是在具體實施過程中,該設備還可以包括實現正常運行所必需的其他元件。此外,本領域的技術人員可以理解的是,上述設備中也可以僅包含實現本發明實施例方案所必需的組件,而不必包含圖中所示的全部元件。
本發明實施例還提供一種電腦可讀儲存介質,其上儲存有電腦程式,該程式被處理器執行時實現圖2、圖4或者圖5任一所示的生物特徵應用功能的啟用方法。
電腦可讀介質包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存介質的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸介質,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀介質不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。
透過以上的實施方式的描述可知,本領域的技術人員可以清楚地瞭解到本發明實施例可借助軟體加必需的通用硬體平臺的方式來實現。基於這樣的理解,本發明實施例的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品可以儲存在儲存介質中,如ROM/RAM、磁碟、光碟等,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本發明實施例各個實施例或者實施例的某些部分所述的方法。
上述實施例闡明的系統、方法、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、筆記型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。
本發明中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於方法實施例而言,由於其基本相似於方法實施例,所以描述得比較簡單,相關之處參見方法實施例的部分說明即可。以上所描述的方法實施例僅僅是示意性的,其中所述作為分離部件說明的模組可以是或者也可以不是物理上分開的,在實施本發明實施例方案時可以把各模組的功能在同一個或多個軟體和/或硬體中實現。也可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。本領域普通技術人員在不付出創造性勞動的情況下,即可以理解並實施。
以上所述僅是本發明實施例的具體實施方式,應當指出,對於本技術領域的普通技術人員來說,在不脫離本發明實施例原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視為本發明實施例的保護範圍。 In order for those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described implementation Examples are only some of the embodiments of the present invention, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention shall fall within the scope of protection. In the current technology, in order to protect user privacy and facilitate management, the user's biometric features are generally recorded and stored through the operating system by calling the corresponding hardware module, and the application does not have permission to directly call the user's biometric features . That is, the user's biometric information and the application are isolated. The biometric features include fingerprints, irises, voiceprints, facial features, and the like. The operating system can be an Android system or an IOS system. When any local application needs to use the user's biometrics for authentication, it can obtain the user's biometrics information by making a request to the operating system. As shown in FIG. 1 , FIG. 1 is a schematic diagram of an architecture of an application program, an operating system, and a device hardware when biometrics are involved in the current technology. The user equipment in this schematic diagram may be a device such as a smart phone, a tablet computer, etc., and the acquisition hardware therein may include hardware such as a fingerprint acquisition module, a photographic lens, a microphone, and the like. Therefore, when it is necessary to use the user's biometrics for verification in the application to enable a certain function, for example, to enable fingerprint payment or face login, if the user's biometrics have not been entered in the operating system in advance, then the application It is not possible to make calls to the operating system. In this case, the user first needs to leave the current application interface, switch to the corresponding input interface of the operating system, enter the biometric, and then switch back to the application to enable fingerprint payment or face login. Based on this, the embodiment of the present invention provides a scheme for enabling biometric application functions. By directly embedding the related functions of the operating system in the application program, the user can use the biometric feature without switching out of the application program interface when the user has not entered the biometric feature. Turn on the biometric application function in the application. The technical solutions provided by various embodiments of the present invention will be described in detail below in conjunction with the drawings. As shown in Figure 2, Figure 2 is a schematic flowchart of a method for enabling a biometric application function provided by an embodiment of the present invention, the process specifically includes the following steps: S201, the application program receives a confirmation instruction input by the user to enable the biometric application function . Biometric application functions can be login, unlock or payment, etc. In the application program interface, corresponding setting items may be displayed to provide the user with the option to enable or disable a certain biometric application function. S203, the application initiates a detection of whether the operating system has pre-registered the biometric feature of the user. As mentioned above, since the user's biometrics are entered and managed uniformly by the operating system, the application does not have the right to directly access the user's biometrics. Therefore, in an implementation manner, the application program may initiate detection, and the detection method may be that the application program initiates a query request to the operating system. In the operating system, a flag bit can be preset to mark whether the operating system has entered a specified biometric feature, and the value of the flag bit represents "yes" or "no". For example, set the default preset value of the flag bit to "0" to indicate that there is no fingerprint. After the user has entered the fingerprint, modify the value of the flag bit to "1". After fingerprinting, modify the value of the flag bit to "0" again. Therefore, the operating system can directly query the value of the flag bit to determine whether the operating system has entered the user's biometric feature. After receiving the query request, the operating system can directly query the value of the flag bit, so as to determine whether the operating system has entered the user's biometric feature in advance, and obtain the detection result. In another implementation manner, the application program may also query certain accessible files related to the user's biological characteristics. For example, if the operating system has entered the user's biometrics in advance, at this time, if the application needs it, the operating system can send some files or information related to the user's biometrics to the application. The irreversible key file (for example, hash value) generated by biometrics is sent to the application program, and the application program receives the irreversible key file and stores it in the specified path. The irreversible key file means that the file is generated by an irreversible encryption algorithm for the user's biological characteristics, and the user's biological characteristics cannot be reversed based on the irreversible key file, ensuring that the user's privacy will not be leaked. The irreversible encryption algorithm may be MD5 (Message-Digest Algorithm 5) algorithm or irreversible encryption standard (Secure Hash Standard, SHS) and so on. Due to the uniqueness of the user's biological characteristics, the irreversible key file is generally unique. In this implementation mode, the application program can directly query whether there is a corresponding irreversible key file under the specified path. If so, it means that the system has entered the user's biometrics. Otherwise, it is not entered yet. S205. If the detection result is negative, the operating system invokes the biometric feature entry function, and keeps the interface of the application program displayed at the front end, and displays a prompt interface related to the biometric feature entry function to obtain the user biological characteristics. As mentioned above, the operating system can directly obtain the detection results, or the application program can notify the operating system of the detection results. If the detection result is negative, the operating system invokes the biometric feature entry function, and while keeping the interface of the application program displayed on the front end, the operating system displays a prompt interface related to the biometric feature entry function to obtain the user's biometrics. The prompt interface generally only displays some prompt information related to the entry process, and the entry process can be realized by the operating system calling the corresponding fingerprint collection module, camera, microphone and other hardware. The specific display method may be to embed the above-mentioned prompt interface in the application program interface, or to display the above-mentioned prompt interface in the application program interface in a floating manner, or to display the above-mentioned prompt interface and the application program interface in a split screen. As shown in FIG. 3 , FIG. 3 is a schematic diagram of a prompt interface provided by an embodiment of the present invention displayed in an interface of an application program. In this diagram, the prompt interface is embedded at the bottom of the interface of the application program. It should be noted that during this process, although the interface of the application program is still displayed on the front end, the application program itself will not participate in the process of biometric entry. The entered biometrics are also stored by the operating system, and corresponding access permissions are set, for example, only the operating system has the permission to read and delete. In addition, in this process, the biometrics entered may also be part of the user's characteristic information, as long as the part of the user's characteristic information can be used to uniquely identify the user. For example, fingerprints refer to the uneven lines on the skin on the front of the end of a person's fingers. The lines are arranged regularly to form different grain patterns. The starting point, ending point, joint point and bifurcation point of the ridge line are called the characteristic points of the fingerprint. In the process of registering the fingerprint, only the above-mentioned characteristic points are not recorded in the whole picture of the fingerprint. This can also play a role in identifying the user, and even if other people or applications obtain the feature points, there is no way to reversely deduce the fingerprint image, which further protects user privacy. S207. After the application program confirms that the biometric function is successfully entered into the operating system, it starts the user's biometric application function. After the operating system successfully enters the biometric function, it can send a confirmation message to the application program. After receiving the confirmation message, the application program can know that the entry has been successful, and open the biometric application function specified by the confirmation command in the application program. . In one embodiment, after the biometric feature is successfully entered, the operating system can also use an irreversible encryption algorithm to generate an irreversible key file directly based on the user's biometric feature. And send a successful entry message and the irreversible key file to the application program, or only send the irreversible key file to the application program. The application program can know that the entry has been successful. And the irreversible key file is stored, and the user identity verification can be performed according to the irreversible key file when logging in, unlocking or paying according to the user's biological characteristics next time, and at the same time, it also ensures that the application program will not leak the user's privacy. In the solution provided by the embodiment of the present invention, when the user has not entered the biometric feature in the operating system in advance, through the process of activating the biometric application function in the application program, the operating system setting can be embedded, and the application interface can be displayed at the front end. At the same time, the user's biometric feature is entered, and the user's biometric application function is successfully opened. It avoids manual switching of multiple interfaces, facilitates the use of users, improves user experience, and increases the activation rate of users. At the same time, the embodiment of the present invention provides a method for enabling the biometric application function applied to the operating system, as shown in FIG. 4 , which is the activation of the biometric application function applied to the operating system provided by the embodiment of the present invention The flow diagram of the method includes: S401, the operating system receives the query request sent by the application program and performs a query operation, the query operation is used to query whether the operating system has pre-registered the user's biometric feature; S403, if the query result is not, call Biometric feature entry function, keeping the interface of the application program displayed at the front end, and displaying a prompt interface related to the biometric feature entry function; S405, obtaining the user's biometric feature and storing it; S407, returning a confirmation message that the biometric feature is successfully entered to the app so that the app opens the user's biometric app functionality. Further, after the user's biometric feature is obtained and stored, the user's biometric feature can also be encrypted using an irreversible algorithm to generate an irreversible key file, and a confirmation message that the biometric feature is successfully entered and the irreversible key file can be sent to application. At the same time, the embodiment of the present invention provides a method for enabling the biometric application function applied to the application program, as shown in FIG. 5 , which is the activation of the biometric application function applied to the application program provided by the embodiment of the present invention. A schematic flow diagram of the method, including: S501, the application program receives a confirmation instruction input by the user to activate the biometric application function; S503, the application program initiates a detection of whether the operating system has pre-registered the user's biometric feature, so that the operating system can check the result of the detection In the case of no, call the user's biometric feature input function; S505, receive the confirmation message returned by the operating system that the biometric feature has been entered successfully, and start the user's biometric feature application function. Furthermore, the application program can also receive the confirmation message and the irreversible key file returned by the operating system to confirm that the biometric feature is successfully entered, and store the irreversible key file, so that when the biometric application function is executed later, according to the irreversible key file key file for user authentication. Correspondingly, the embodiment of the present invention also provides a system for enabling biometric application functions, including an application program and an operating system. The application program receives a confirmation instruction input by the user to activate the biometric application function; Detection of the user's biometric feature; after confirming that the operating system has successfully entered the biometric feature function, enable the user's biometric feature application function; the operating system, when the detection result is negative, calls the biometric feature input function, and maintains The interface of the application program is displayed on the front end, and a prompt interface related to the biometric feature input function is displayed; and the biometric feature of the user is obtained. In the system, the biometric application function includes biometric unlocking, login or payment. In the system, the application program initiates a query request to the operating system to determine whether the user's biometric feature has been pre-registered, and determines whether the operating system has pre-registered the user's biometric feature according to the query result of the operating system; or, the application program detects the specified Whether an irreversible key file is stored in the path, and the irreversible key file is generated by the operating system according to the user's biological characteristics. In the system, the application program, after receiving the irreversible key file returned by the operating system, confirms that the operating system has successfully entered the biometric function, and the irreversible key file is determined by the operating system according to the user's biometric produce. Correspondingly, the embodiment of the present invention also provides a device for enabling the biometric application function of the operating system, as shown in FIG. 6 . Schematic diagram, including: query module 601, the operating system receives the query request sent by the application program and executes the query operation, the query operation is used to query whether the operating system has pre-registered the user's biological characteristics; call module 603, if the query result If not, call the biometric feature entry function, keep the interface of the application program displayed at the front end, and display a prompt interface related to the biometric feature entry function; obtain module 605, obtain and store the user's biometric feature; send module 607. Return a confirmation message that the biometric feature is successfully entered to the application program, so that the application program starts the user's biometric feature application function. Further, the device also includes an encryption module 609, which uses an irreversible algorithm to encrypt the biometric feature of the user to generate an irreversible key file; the sending module 607, which sends a confirmation message that the biometric feature is successfully entered and the irreversible key file. key file to the application. Correspondingly, the embodiment of the present invention also provides a device for enabling the biometric application function of the operating system, as shown in FIG. 7 . Schematic diagram, including: receiving module 701, the application program receives the confirmation instruction input by the user to activate the biometric application function; detection module 703, the application program initiates the detection of whether the operating system has pre-registered the user's biometric feature, so that the operating system In the case that the user's biometric feature has not been entered, call the user's biometric feature input function; open the module 705, receive the confirmation message returned by the operating system that the biometric feature has been successfully entered, and start the user's biometric feature application function. Further, the opening module 705 receives the confirmation message and the irreversible key file returned by the operating system that the biometric feature is successfully entered; the device also includes a storage module 707 that stores the irreversible key file, so that according to the The above irreversible key file is used for user authentication. An embodiment of the present invention also provides a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein, when the processor executes the program, the computer program shown in FIG. 2 and FIG. 4 is realized. Or the method for enabling the biometric application function shown in any one of FIG. 5 . FIG. 8 shows a schematic diagram of a more specific hardware structure of a computing device provided by an embodiment of the present invention. The device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050 . The processor 1010 , the memory 1020 , the input/output interface 1030 and the communication interface 1040 are connected to each other within the device through the bus bar 1050 . The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for Relevant programs are executed to realize the technical solutions provided by the embodiments of the present invention. The memory 1020 can be implemented in the form of ROM (Read Only Memory, read-only memory), RAM (Random Access Memory, random access memory), static storage device, dynamic storage device, and the like. The memory 1020 can store the operating system and other application programs. When implementing the technical solutions provided by the embodiments of the present invention through software or firmware, the relevant program codes are stored in the memory 1020 and called and executed by the processor 1010. . The input/output interface 1030 is used to connect the input/output module to realize information input and output. The input/output/module can be configured in the device as a component (not shown in the figure), or can be connected externally to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, and the like. The communication interface 1040 is used to connect a communication module (not shown in the figure), so as to realize the communication interaction between the device and other devices. Among them, the communication module can realize communication through wired methods (such as USB, network cable, etc.), and can also realize communication through wireless methods (such as mobile network, WIFI, Bluetooth, etc.). The bus 1050 includes a path for transferring information between various components of the device (eg, the processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040). It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040, and the bus bar 1050, in the specific implementation process, the device may also include Other components required. In addition, those skilled in the art can understand that the above-mentioned device may only include components necessary to realize the solution of the embodiment of the present invention, and does not necessarily include all the elements shown in the figure. An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method for enabling the biometric application function shown in any one of FIG. 2 , FIG. 4 or FIG. 5 is implemented. Computer readable media includes both permanent and non-permanent, removable and non-removable media and may be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for computers include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM) , read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital multifunction Compact disc (DVD) or other optical storage, magnetic cassette, magnetic tape magnetic disk storage or other magnetic storage device or any other non-transmission medium used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media, such as modulated data signals and carrier waves. From the above description of the implementation manners, it can be seen that those skilled in the art can clearly understand that the embodiments of the present invention can be realized by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the essence of the technical solutions of the embodiments of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention. The systems, methods, modules or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a notebook computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, a game control device, etc. desktops, tablets, wearables, or any combination of these. Each embodiment of the present invention is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the method embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiments. The above-described method embodiments are only illustrative, and the modules described as separate components may or may not be physically separated, and the functions of each module may be integrated into the implemented in one or more software and/or hardware. Part or all of the modules can also be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort. The above is only the specific implementation of the embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, some improvements and modifications can be made without departing from the principle of the embodiment of the present invention. Improvements and modifications should also be regarded as the scope of protection of the embodiments of the present invention.
S201-505:步驟
601:查詢模組
603:調用模組
605:獲取模組
607:發送模組
609:加密模組
701:接收模組
703:檢測模組
705:開啟模組
707:儲存模組
1010:處理器
1020:記憶體
1030:輸入/輸出介面
1040:通信介面
1050:匯流排
S201-505: Steps
601: query module
603: Call module
605: Get module
607: send module
609: encryption module
701: Receiving module
703: detection module
705: Open the module
707: storage module
1010: Processor
1020: memory
1030: input/output interface
1040: communication interface
1050: busbar
為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本發明實施例中記載的一些實施例,對於本領域普通技術人員來講,還可以根據這些圖式獲得其他的圖式。
圖1為當前技術中涉及到生物特徵時應用程式、作業系統和設備硬體的架構示意圖;
圖2是本發明實施例提供的一種生物特徵應用功能的啟用方法的流程示意圖;
圖3為本發明實施例所提供的一種提示介面在應用程式的介面中展示的示意圖;
圖4為本發明實施例所提供的應用於作業系統上的生物特徵應用功能的啟用方法的流程示意圖;
圖5為本發明實施例所提供的應用於應用程式上的生物特徵應用功能的啟用方法的流程示意圖;
圖6為本發明實施例所提供的作業系統方面的生物特徵應用功能的啟用裝置的示意圖;
圖7為本發明實施例所提供的作業系統方面的生物特徵應用功能的啟用裝置的示意圖;
圖8示出了本發明實施例所提供的一種更為具體的計算設備硬體結構示意圖。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only the present invention. For some embodiments described in the embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings.
Figure 1 is a schematic diagram of the architecture of the application program, operating system and device hardware when biometric features are involved in the current technology;
Fig. 2 is a schematic flowchart of a method for enabling a biometric application function provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a prompt interface provided by an embodiment of the present invention displayed in an application program interface;
FIG. 4 is a schematic flowchart of a method for enabling a biometric application function applied to an operating system provided by an embodiment of the present invention;
FIG. 5 is a schematic flowchart of a method for enabling a biometric application function applied to an application provided by an embodiment of the present invention;
6 is a schematic diagram of a device for enabling a biometric application function in an operating system provided by an embodiment of the present invention;
FIG. 7 is a schematic diagram of a device for enabling a biometric application function in an operating system according to an embodiment of the present invention;
Fig. 8 shows a schematic diagram of a more specific hardware structure of a computing device provided by an embodiment of the present invention.