[go: up one dir, main page]

TW201934861A - Remote control electronic lock system and encrypting/decrypting method - Google Patents

Remote control electronic lock system and encrypting/decrypting method Download PDF

Info

Publication number
TW201934861A
TW201934861A TW107104852A TW107104852A TW201934861A TW 201934861 A TW201934861 A TW 201934861A TW 107104852 A TW107104852 A TW 107104852A TW 107104852 A TW107104852 A TW 107104852A TW 201934861 A TW201934861 A TW 201934861A
Authority
TW
Taiwan
Prior art keywords
unlocking
key
electronic lock
code
controller
Prior art date
Application number
TW107104852A
Other languages
Chinese (zh)
Other versions
TWI638081B (en
Inventor
施文展
赖建州
郭一統
王鏑程
Original Assignee
天揚精密科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 天揚精密科技股份有限公司 filed Critical 天揚精密科技股份有限公司
Priority to TW107104852A priority Critical patent/TWI638081B/en
Application granted granted Critical
Publication of TWI638081B publication Critical patent/TWI638081B/en
Publication of TW201934861A publication Critical patent/TW201934861A/en

Links

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

This invention provides an electronic lock system which includes an electronic lock having a wireless receiving unit for wirelessly receiving an unlocking signal; a storage unit for storing an unlocking identification code; a processing unit including an identification module, a timing module, and an actuating signal generation module; a latch actuator; and a setting input port. This invention also provides a user-configurable encryption and decryption method. By using the electronic lock system and the password encryption and decryption method of this invention, a hidden multi-function remote electronic lock that can be constructed by the user itself can be obtained, which can provide an electronic lock that is safe and suitable for various purposes and applications. Moreover, a setting for different levels of security beyond limitations by manufacturers can be obtained, without a problem of data leakage and hack.

Description

遙控電子鎖系統及其加解密方法Remote control electronic lock system and encryption and decryption method thereof

本發明係有關於一種電子鎖系統,尤其是有關於一種高安全性且使用者可自建系統的遙控電子鎖系統及其加解密方法。The invention relates to an electronic lock system, in particular to a remote-control electronic lock system with high security and a user-built system and a method for encrypting and decrypting the same.

隨著科技的進步,電子鎖已有愈來愈多的趨勢。為了安全起見,電子鎖的密碼解鎖方式也更加多樣化與複雜化。With the advancement of technology, electronic locks have become more and more popular. For security reasons, the password unlocking methods of electronic locks are also more diverse and complicated.

市面上常見的電子鎖有類似按鍵電話機的電子鎖,通過在按鍵上依次輸入一組密碼,如果密碼與內部預設的密碼相同,控制機械開關完成開鎖。還有使用感應方式的電子鎖,但是外出時需要額外攜帶磁卡,且磁卡易被複製。再者,以保險箱為例,雖可由使用者設定密碼,但輸入裝置外露,偷竊者容易由外部破壞,且因密碼之設定係由人為想定,易於被破解。又以接近感應式電子門鎖為例,感應器亦必須外露在門外,一樣易於被偷竊者由外部破壞,且感應卡容易被複製。Common electronic locks on the market include electronic locks similar to key telephones. By entering a set of passwords in sequence on the keys, if the password is the same as the internal preset password, the mechanical switch is controlled to complete the unlocking. There are also electronic locks that use induction methods, but when you go out, you need to carry an additional magnetic card, and the magnetic card is easy to be copied. Furthermore, taking the safe as an example, although the password can be set by the user, but the input device is exposed, the thief is easily destroyed by the outside, and the setting of the password is artificial and easy to be cracked. Taking the proximity proximity electronic door lock as an example, the sensor must also be exposed outside the door, which is also easy for theft to be destroyed by the outside, and the proximity card can be easily copied.

又,目前的電子門鎖基本上都可以設置密碼,密碼存放在鎖體內非易失性存儲設備中,以下稱之為固定密碼;每次開鎖時輸入密碼,輸入的密碼和存放在非易失性存儲設備中的密碼進行比對,一致時開鎖。這種方式容易從輸入介面被看出密碼,且對於臨時用戶有不便利性。如果用戶不在鎖旁邊,臨時用戶需要打開門鎖,用戶就需要將固定密碼告知臨時用戶;當臨時用戶使用完之後,用戶一般需要及時修改密碼,否則容易造成密碼洩漏,因而適用範圍不大。In addition, the current electronic door locks can basically be set with a password. The password is stored in a non-volatile storage device in the lock body, hereinafter referred to as a fixed password; the password is entered each time the lock is unlocked, and the entered password is stored in non-volatile memory. The passwords in the storage device are compared and unlocked when they are consistent. This method is easy to see the password from the input interface and is inconvenient for temporary users. If the user is not next to the lock and the temporary user needs to open the door lock, the user needs to inform the temporary user of the fixed password; after the temporary user has finished using it, the user generally needs to change the password in time, otherwise it is easy to cause the password to leak and the scope of application is not large.

為了解決這個問題,現有技術中,有一種方法是通過手機APP給臨時用戶進行授權。這種方式的缺陷在於要求門鎖有很完備的授權解決方案,目前大部分產品的做法是使門鎖聯網,通過網絡實現對鎖的控制,一方面增加了成本,另一方面也帶來安全隱患;另一方面要求臨時用戶也必須使用安裝了APP的手機,手機還需要聯網接收授權信息,對不能裝APP或者沒有安裝對應APP的用戶,以及網絡環境不是很好的用戶來說,這種方法就無能為力了。To solve this problem, in the prior art, there is a method for authorizing temporary users through a mobile phone APP. The disadvantage of this method is that it requires a complete authorization solution for the door lock. At present, the practice of most products is to network the door lock and control the lock through the network, which increases costs on the one hand and brings security on the other. Hidden dangers; on the other hand, temporary users must also use a mobile phone with an APP installed. The mobile phone also needs to connect to the network to receive authorization information. For users who cannot install the APP or have not installed the corresponding APP, and users who have a poor network environment, this kind of The method is powerless.

另有一種方法是如專利號CN102168509 B所提出的一種密碼隨日期或時間進行變化的動態密碼鎖系統,但其密碼隨日期或時間進行變化生成時,密碼鎖管理者輸入固定密碼F和日期D來計算密碼,這就意味著密碼和日期相關,同一日期的一天之內甚麼時候都能夠使用該密碼,不同日期的密碼是動態變化的;用戶無法設置時間段,也無法設置使用次數,不同日期需要不同的密碼才能開鎖,使用很不方便。Another method is a dynamic password lock system proposed by patent number CN102168509 B. The password changes with the date or time, but when the password changes with the date or time, the password lock manager enters the fixed password F and the date D. To calculate the password, this means that the password is related to the date. The password can be used at any time within one day of the same date. The password for different dates is dynamically changed. The user cannot set the time period and the number of uses. The date is different. Different passwords are required to unlock, which is very inconvenient to use.

鑑於上述習知技術與問題,本發明的目的在於提供一種由使用者自主建構解鎖密碼之隱藏式多功能遙控電子鎖。尤其是,第一目的在於提供一種使用者可以自己以隨機方式產生密碼來為電子鎖設定密碼,且不用記密碼,並可以在需要時由使用者變更原設定密碼的自建式遙控電子鎖系統。In view of the above-mentioned conventional technologies and problems, an object of the present invention is to provide a hidden multi-function remote-control electronic lock with an unlocking password independently constructed by a user. In particular, the first object is to provide a self-built remote control electronic lock system in which a user can set a password for an electronic lock by generating a password in a random manner without having to remember the password, and the user can change the original set password when needed. .

本發明進一步目的在於提供一種高安全性的電子鎖,其解鎖碼可以有多組,且需要在一特定時間內識別完成,並可以變更解鎖碼組數與識別時間設定,而能提供多種等級安全性設定,供多種功能應用。A further object of the present invention is to provide a high-security electronic lock. The unlock code can have multiple groups, and it needs to be identified within a specific time. The number of unlock code groups and the identification time settings can be changed to provide multiple levels of security. Setting for multiple functions.

本發明又進一步目的在於提供一種可分別授權開鎖的電子鎖系統,俾可使多位第二順位人員同時到場進行開鎖,並提供一種可以記錄開鎖者的電子鎖系統。Still another object of the present invention is to provide an electronic lock system that can be authorized to unlock separately, which can allow multiple second-ranking personnel to arrive at the scene to unlock at the same time, and provide an electronic lock system that can record the unlocker.

本發明又進一步目的在於提供一種新穎的電力不足警示裝置,使電子鎖既能保留最低電力提供解鎖功能,又能提醒使用者更換電池電力。Still another object of the present invention is to provide a novel power shortage warning device, so that the electronic lock can retain the minimum power to provide an unlocking function, and remind the user to change the battery power.

本發明又進一步目的在於提供一種可以防止盜賊側錄,並可以同時供多把開鎖控制器進行開鎖的電子鎖系統,並提供一種解鎖碼加解密的方法Still another object of the present invention is to provide an electronic lock system which can prevent thieves from recording sideways, and can be used for unlocking by multiple unlocking controllers at the same time, and provide a method for encrypting and decrypting unlock codes.

為了達成上述目的,本發明提供一種電子鎖系統,其包含有一電子鎖,且該電子鎖具有: 一無線接收單元,用以無線接收解鎖信號; 一儲存單元,可供儲存至少二組解鎖識別碼; 一處理單元,包含有: 一識別模組,用以接收該解鎖信號,並可比對該等至少二組解鎖識別碼;以及, 一作動信號產生模組,用以在比對出該等至少二組相對應識別碼時,送出一作動信號給開鎖致動器; 一開鎖致動器,用以在收到該作動信號時,進行開鎖;以及, 一設定輸入埠,用以供使用者自行可變地設定該等至少二組解鎖識別碼,且該等至少二組解鎖識別碼之至少其中之一係一由使用者操作產生之亂數。To achieve the above object, the present invention provides an electronic lock system including an electronic lock, and the electronic lock has: a wireless receiving unit for wirelessly receiving an unlocking signal; a storage unit for storing at least two sets of unlocking identification codes A processing unit including: an identification module for receiving the unlocking signal and comparing the at least two sets of unlocking identification codes; and an operation signal generating module for comparing the at least two When two sets of corresponding identification codes are sent, an actuation signal is sent to the unlocking actuator; an unlocking actuator is used to unlock when the actuating signal is received; and, a setting input port is provided for the user The at least two sets of unlocking identification codes are variably set, and at least one of the at least two sets of unlocking identification codes is a random number generated by a user operation.

藉由上述技術,使用者可以自己建構密碼,並可以在一開鎖控制器遺失時,由使用者自己重新編製電子鎖的解鎖識別碼,並經由該設定輸入埠完成電子鎖與開鎖控制器的新解鎖識別碼設定,而不用換掉整組電子鎖,只需再添置開鎖控制器即可,也不用擔心所遺失開鎖控制器被人撿去開鎖。With the above technology, the user can construct the password by himself, and when the unlocking controller is lost, the user can re-program the unlocking identification code of the electronic lock, and complete the new electronic lock and unlocking controller through the setting input port. To unlock the identification code setting, instead of replacing the entire group of electronic locks, you only need to add an unlocking controller, and you do not need to worry about someone losing the unlocking controller to be picked up and unlocked.

又,為達成上述目的,所述電子鎖還包含一計時模組,用以在收到該解鎖信號後開始計時,且該作動信號產生模組在一特定時間內比對出該至少二組相對應識別碼時,才會送出該作動信號。藉此,將能避免盜賊利用掃頻方式解出開鎖密碼。In addition, in order to achieve the above purpose, the electronic lock further includes a timing module for starting timing after receiving the unlock signal, and the actuation signal generating module compares the at least two sets of phases within a specific time. This signal will be sent only when the identification code is matched. In this way, thieves can be prevented from unlocking the password by scanning the frequency.

又,為達成上述目的,本發明所揭電子鎖系統之該處理單元還具有一安全性等級設定模組,用以供變更該特定時間之長短或該識別模組要識別的解鎖識別碼組數。藉此,各使用者即可各自依裝設情況之需要,藉由自行變更識別組數或接收時限,來變更安全性等級,再加上隨機方式來編組識別碼,將能提供一種可符合使用者各種實際安裝或保全需求的多功能電子鎖。In addition, in order to achieve the above object, the processing unit of the electronic lock system disclosed in the present invention also has a security level setting module for changing the length of the specific time or the number of unlocking identification code groups to be recognized by the identification module. . In this way, each user can individually change the security level by changing the number of identification groups or the receiving time limit according to the needs of the installation situation. In addition, the identification code can be grouped in a random manner, which can provide a suitable application. Multifunctional electronic locks for various practical installation or security needs.

又,為達成上述目的,本發明提供一種電子鎖系統,其中一組解鎖識別碼為特定開鎖控制器識別碼,用以識別至少一開鎖控制器。藉此,除增加安全性外,並可記錄特定可開鎖使用者。In addition, in order to achieve the above object, the present invention provides an electronic lock system, in which a set of unlocking identification codes are specific unlocking controller identification codes for identifying at least one unlocking controller. In this way, in addition to increasing security, specific unlockable users can be recorded.

又,為達成上述目的,本發明提供一種電子鎖系統,其中該等至少二解鎖識別碼其中之一為一電力更換確認碼,且其中,該電子鎖還包含一電力警示模組,用以在電力剩下一特定值時,進入休眠模式而停止接收解鎖信號,且在進入該休眠模式之下,只有接收到該電力更換確認碼,才會停止休眠。In addition, in order to achieve the above object, the present invention provides an electronic lock system, wherein one of the at least two unlocking identification codes is a power replacement confirmation code, and wherein the electronic lock further includes a power warning module for When a certain value of power is left, the device enters the sleep mode and stops receiving the unlock signal. After entering the sleep mode, it will only stop sleeping after receiving the power replacement confirmation code.

又,為達成上述目的,本發明提供一種電子鎖系統,其中該儲存單元儲存有一金鑰庫,金鑰庫包含有至少一金鑰;該無線接收單元所接收之解鎖信號含有一利用一基數與該金鑰兩者至少其中之一對一組解鎖碼加密而成的加密解鎖碼;且該處理單元還包含一解密模組,用以從所收該加密解鎖碼中,利用該金鑰,解出該基數及該組解鎖碼二者至少其中之一,供與其中一組解鎖識別碼進行比對。In addition, in order to achieve the above-mentioned object, the present invention provides an electronic lock system, wherein the storage unit stores a key store, the key store contains at least one key; the unlock signal received by the wireless receiving unit includes a use of a base and An encrypted unlock code obtained by encrypting a set of unlock codes with at least one of the two keys; and the processing unit further includes a decryption module for decrypting the encrypted unlock code received from the received encrypted unlock code using the key. At least one of the base number and the set of unlocking codes is provided for comparison with one of the set of unlocking identification codes.

又,為達成上述目的,本發明提供一種電子鎖系統,其中該處理單元還包含一基數比對模組,且該基數為一計數,每解密出該基數即儲存該基數,並將該基數與前一次所儲基數作比較,當其差為一特定值之範圍內時,才能達成解密。該電子鎖並可供儲存一本記錄有各別對應於多數開鎖控制器之多數計數的計數庫,該無線接收單元所接收之解鎖信號包含有一對應於各別開鎖控制器的控制器識別碼,且該基數比對模組就所解密出之該基數,與所收控制器識別碼所對應的既存計數,進行比較。藉此,將可以防止加密解鎖碼被側錄,並可識別不同的開鎖控制器。In addition, in order to achieve the above object, the present invention provides an electronic lock system, wherein the processing unit further includes a cardinality comparison module, and the cardinality is a count, and each time the cardinality is decrypted, the cardinality is stored, and the cardinality and The previous stored base number is compared. When the difference is within a specific range, decryption can be achieved. The electronic lock is also capable of storing a counting library which records the majority counts corresponding to the majority of the unlocking controllers, and the unlocking signal received by the wireless receiving unit includes a controller identification code corresponding to each unlocking controller, And the cardinality comparison module compares the cardinality decrypted with the existing count corresponding to the received controller identification code. Thereby, the encrypted unlock code can be prevented from being skimmed, and different unlock controllers can be identified.

又,為達成上述目的,本發明所揭電子鎖系統還包含一開鎖控制器,其具有一儲存單元,用以儲存該至少二組解鎖識別碼之至少其中之一;以及,一射控單元,用以在該特定時間內發射一含有該至少二組解鎖識別碼之至少其中之一的解鎖信號給該電子鎖。藉此,可以由一人單獨以多組解鎖碼進行開鎖,也可以將二解鎖碼分別授權給二開鎖控制器發射,而在該二開鎖控制器同時動作時才能開鎖。In addition, in order to achieve the above object, the electronic lock system disclosed in the present invention further includes an unlocking controller having a storage unit for storing at least one of the at least two sets of unlocking identification codes; and a shooting control unit, The electronic lock is used to transmit an unlocking signal containing at least one of the at least two sets of unlocking identification codes to the electronic lock within the specific time. Thereby, one person can unlock the locks with multiple unlock codes individually, or the two unlock codes can be authorized to be transmitted to the two unlock controllers respectively, and the unlock can only be performed when the two unlock controllers act simultaneously.

又,該開鎖控制器具有一電力更換確認模組,用以在被動作時,發出一電力更換確認碼。藉此,若使用者在電力不足時仍執意不更換電池,則每次解鎖時均需此繁複動作直到完全沒電。In addition, the unlocking controller has a power replacement confirmation module for issuing a power replacement confirmation code when being operated. Therefore, if the user still insists on not replacing the battery when the power is insufficient, this complicated operation is required each time until the battery is completely discharged.

又,為達成上述目的,本發明另提供一種密碼加解密方法,該密碼儲存在一儲存單元中,且該儲存單元還儲存有一金鑰庫,該金鑰庫含有至少一金鑰;該方法包含:因應每次加密要求,取得一動態基數;取出該至少一金鑰對該基數進行加密,而產生一加密基數碼供傳送;以及,根據該至少一金鑰及該基數兩者至少其中之一,產生一動態金鑰,再以該動態金鑰對該密碼進行加密,而產出一加密密碼供傳送。密碼解密方法應用在一裝置中,該裝置具有一儲存單元供儲存有一金鑰庫,且該金鑰庫含有至少一金鑰;該方法包含:接收一加密一動態基數而成的加密動態基數碼及一加密一密碼而成的加密密碼;取出該至少一金鑰,對該加密動態基數碼進行解密,而得出該基數;利用該基數與該至少一金鑰兩者至少其中之一,解密出一動態金鑰;以及,利用該動態金鑰,對該加密密碼進行解密,而得出該密碼。In addition, in order to achieve the above object, the present invention further provides a password encryption and decryption method. The password is stored in a storage unit, and the storage unit further stores a key store, the key store contains at least one key; the method includes : Obtain a dynamic base in response to each encryption request; take out the at least one key to encrypt the base, and generate an encrypted base digital for transmission; and, based on the at least one key and the at least one of the base A dynamic key is generated, and the password is encrypted with the dynamic key, and an encrypted password is generated for transmission. The password decryption method is applied in a device, the device has a storage unit for storing a key store, and the key store contains at least one key; the method includes: receiving an encrypted dynamic base code obtained by encrypting a dynamic base And an encrypted password obtained by encrypting a password; taking out the at least one key and decrypting the encrypted dynamic base figure to obtain the base; using at least one of the base and the at least one key to decrypt A dynamic key is issued; and the encrypted password is decrypted using the dynamic key to obtain the password.

綜合上述,藉由上述本發明各種觀點,由於鎖及天線均可裝置在門內側,甚至在門板內,且外部開鎖有效距離10m以上,內部開鎖有效距離50m以上,因而可以提供一種由門外看不到任何鎖具位置配件等而避免被破壞,進而可以達成上述各種目的的電子鎖系統。尤其,藉由使用者可以自己設定極具安全性的解鎖碼,並可以自己設定不同等級的安全性,不受製造廠商出廠時之指定,將不會有洩漏密碼資料之問題,也不會有必須強記解鎖碼而有忘記或洩漏密碼之問題。而且,本發明所揭電子鎖不用透過無線網路架構即可遙控開鎖,不會有網路駭客的安全性問題。而且,可將其中一組識別碼設定為控制器碼,將可儲存不同人員開啟記錄,並可作代位授權開鎖管理。因此,本發明所揭電子鎖可以提供一種由使用者自主建構解鎖密碼之隱藏式多功能電子鎖,且能以一簡單架構,提供安全且適於多種用途與應用的電子鎖。To sum up, according to the above-mentioned various aspects of the present invention, since the lock and the antenna can be installed inside the door, even in the door panel, and the effective unlocking distance is more than 10m and the effective unlocking distance is more than 50m, it can provide an invisible door An electronic lock system that can achieve the above-mentioned various purposes by avoiding damage to any lock position accessories and the like. In particular, users can set unlock codes with high security by themselves, and can set different levels of security by themselves. They are not specified by the manufacturers when they leave the factory. There will be no problem of leaking password data and no Must remember the unlock code and have the problem of forgetting or revealing the password. Moreover, the electronic lock disclosed in the present invention can be unlocked remotely without using a wireless network structure, and there is no security problem of a hacker. In addition, one set of identification codes can be set as the controller code, which can store different people's opening records, and can be used for substitution authorization unlock management. Therefore, the electronic lock disclosed in the present invention can provide a hidden multifunctional electronic lock with an unlocking password independently constructed by a user, and can provide a safe and suitable electronic lock with a simple structure for a variety of uses and applications.

以下,茲配合各圖式列舉對應之較佳實施例來對本發明所揭電子鎖系統的組成構件及達成功效來進行清楚、完整的描述。然,所述實施例是本發明一部分實施例,而不是全部的實施例。各圖式中各元件僅用來說明本發明的技術特徵,而非對本發明構成限制。In the following, the corresponding preferred embodiments are enumerated with the drawings to make a clear and complete description of the components and effects of the electronic lock system disclosed in the present invention. However, the described embodiments are a part of the embodiments of the present invention, but not all the embodiments. Each element in the drawings is only used to explain the technical features of the present invention, but not to limit the present invention.

根據本發明之第一實施例而成的電子鎖系統包含有一電子鎖100與一開鎖控制器200,因電子鎖本身也可以是一個系統,故在此所稱電子鎖系統也可以只包含電子鎖100本身。The electronic lock system according to the first embodiment of the present invention includes an electronic lock 100 and an unlocking controller 200. Since the electronic lock itself can also be a system, the electronic lock system referred to herein may also include only an electronic lock 100 itself.

如圖1所示,本實施例所揭電子鎖100主要包含:一無線接收單元110,一儲存單元120,一處理單元130、一開鎖致動器140、一設定輸入埠150。在一較佳實施例中電子鎖00還包含一位置感應器160、以及一電力警示單元170。其中該無線接收單元110用以無線接收解鎖信號;該儲存單元120用以儲存至少二組解鎖識別碼;該等元件之電源可來自未顯示之一電池,或是家庭電力線。在此所謂解鎖信號可以是包含各種解鎖碼UC的無線信號,例如可以包含信號種類碼、控制碼、或身份識別碼IP等,其形式可以是定碼、滾碼、或加密碼等;解鎖識別碼IP可以是電子鎖識別碼RXID,也可以是開鎖控制器識別碼TXID、或是群組碼GID等。As shown in FIG. 1, the electronic lock 100 disclosed in this embodiment mainly includes a wireless receiving unit 110, a storage unit 120, a processing unit 130, an unlocking actuator 140, and a setting input port 150. In a preferred embodiment, the electronic lock 00 further includes a position sensor 160 and a power warning unit 170. The wireless receiving unit 110 is used for wirelessly receiving the unlocking signal; the storage unit 120 is used for storing at least two sets of unlocking identification codes; the power of these components may be from a battery not shown, or a household power line. The so-called unlock signal may be a wireless signal including various unlock codes UC, for example, it may include a signal type code, a control code, or an identification code IP, and the form may be a fixed code, a rolling code, or a password; etc. The code IP can be an electronic lock identification code RXID, or an unlocking controller identification code TXID, or a group code GID.

該處理單元130主要包含有:一識別模組132,用以識別所收解鎖信號是否符合該等至少二組解鎖識別碼IP;一計時模組134,用以計時識別所收解鎖信號的時間;以及,一作動信號產生模組136,用以在計時一特定時間內識別出匹配於該等至少二組解鎖識別碼IP的解鎖信號時,可以送出一作動信號給開鎖致動器140進行開鎖。在一較佳實施例中,處理單元130還包含一安全等級設定模組135,用以供變更該特定時間之長短或該識別模組要識別的解鎖識別碼組數,以讓使用者可以因應自己想要之安全等級進行密碼組構。The processing unit 130 mainly includes: an identification module 132 for identifying whether the received unlocking signal conforms to the at least two sets of unlocking identification codes IP; and a timing module 134 for timing the time of identifying the received unlocking signal; And, an activation signal generating module 136 is configured to identify an unlocking signal matching the at least two sets of unlocking identification codes IP within a specific time, and send an activation signal to the unlocking actuator 140 for unlocking. In a preferred embodiment, the processing unit 130 further includes a security level setting module 135 for changing the length of the specific time or the number of unlocking identification code groups to be recognized by the identification module, so that the user can respond accordingly. Do the password organization at the security level you want.

開鎖致動器140用以在收到該作動信號時,收回鎖舌或解除鎖定,而進行開鎖。其中,當然也可以設計成收到作動信號時,是控制成上鎖,這可依所收解鎖信號中所夾帶的控制碼是上鎖或解鎖指令而定。因此,在此所謂解鎖或開鎖僅為代表用語,實際上可包含上鎖/解鎖,或各種開啟動作等。設定輸入埠150用以供使用管理者輸入該等至少二組解鎖識別碼IP,且該等至少二組解鎖識別碼IP係由使用者以隨機方式產生的,並可由使用者進行變更,其可以是有線輸入也可以是無線輸入。位置感應器160,用以感測出電子鎖已回到關門位置,或是鎖舌已回到舌孔位置,而讓鎖舌自動伸出而上鎖。When the unlocking actuator 140 receives the actuation signal, the unlocking actuator 140 retracts the lock tongue or releases the lock to unlock the lock. Among them, of course, it can also be designed to be controlled to be locked when the actuation signal is received, which may depend on whether the control code carried in the received unlock signal is a lock or unlock command. Therefore, the term “unlocking or unlocking” is only a representative term, and may actually include locking / unlocking, or various opening actions. The input port 150 is set for the use manager to input the at least two sets of unlocking identification codes IP, and the at least two sets of unlocking identification codes IP are randomly generated by the user and can be changed by the user. It can be wired input or wireless input. The position sensor 160 is used to detect that the electronic lock has returned to the closed position or the lock tongue has returned to the tongue hole position, so that the lock tongue automatically extends to lock.

電力警示單元170用以在電力剩下一特定值時,進入休眠模式而停止接收解鎖信號,且在進入該休眠模式之下,只有接收到來自開鎖控制器200發出的電力更換確認碼PC時,才會停止休眠,而進行解鎖信號之接收。The power warning unit 170 is configured to stop receiving the unlock signal when the power enters a sleep mode when a specific value remains, and only enters the power replacement confirmation code PC from the unlock controller 200 when the sleep mode is entered. Then it will stop sleeping and receive the unlock signal.

如圖2所示,本實施例所揭開鎖控制器200主要包含:一無線發射單元210、一儲存單元220、一控制單元230、一操作介面240、以及一設定輸出/入埠250;且其中控制單元230包含有一電力更換確認模組232。這些元件之電源來自一未顯示之電池。As shown in FIG. 2, the unlocking controller 200 disclosed in this embodiment mainly includes: a wireless transmitting unit 210, a storage unit 220, a control unit 230, an operation interface 240, and a setting output / input port 250; and The control unit 230 includes a power replacement confirmation module 232. The power for these components comes from an unshown battery.

其中,儲存單元220用以儲存至少二組與電子鎖100相對應的解鎖識別碼IP之至少其中之一。控制單元230與無線發射單元210合稱一射控單元,用以在該特定時間內發射一組含有該至少二組解鎖識別碼IP之至少其中之一的解鎖碼UC給電子鎖100。操作介面240用以供使用者輸入開鎖動作。設定輸出/入埠250用以供使用者輸入或輸出各種設定的解鎖碼UC,並使各種解鎖碼UC儲存在儲存單元中。電力更換確認模組232是用以在電子鎖100的電力不足時,多一層管制機制,讓使用者多一套程序與提醒,並發出一電力更換確認碼PC,以暫時解除電子鎖100之休眠狀態,其細節如后述。The storage unit 220 is configured to store at least one of at least two sets of unlocking identification codes IP corresponding to the electronic lock 100. The control unit 230 and the wireless transmitting unit 210 are collectively referred to as a shooting control unit, and are configured to transmit a set of unlocking codes UC containing at least one of the at least two sets of unlocking identification codes IP to the electronic lock 100 within the specific time. The operation interface 240 is used for a user to input an unlocking action. The setting output / entry port 250 is used for a user to input or output various unlock codes UC, and store various unlock codes UC in a storage unit. The power replacement confirmation module 232 is used to add a layer of control mechanism when the power of the electronic lock 100 is insufficient, allowing the user to set up another program and reminder, and sends a power replacement confirmation code PC to temporarily release the sleep of the electronic lock 100. The details are described later.

以下,進一步說明本實施例所揭電子鎖100之細節。首先就解鎖動作進行說明。識別模組132用以至少能處理5組解鎖碼UC,識別模組132可同時或分時連續判斷一組解鎖碼UC,並依據安全等級設定模組138之設定,來控制要判斷多少組解鎖碼。每一組解鎖碼UC可以包含電子鎖識別碼RXID或開鎖控制器識別碼TXID、以及各種動作控制碼等。當電子鎖100經由無線接收單元110收到一來自解鎖控制器200發出的無線RF解鎖信號時,即由識別模組132進行識別。此時,識別模組132可以在收到解鎖信號時,即發出一計時信號給計時模組134,也可以在識別出第一組解鎖識別碼之後,才發出一計時信號給計時模組134開始計時,計時模組134則在開始計時後的一設定時間後,發出逾時信號。當識別模組132識別出所設定組數之正確解鎖識別碼後,即發射一識別通過信號給作動信號產生模組136。此時,作動信號產生模組136一併參考來自計時模組134的信號,若收到識別通過信號時,已有收到逾時信號,則不會發出作動信號;若還沒有收到逾時信號,則可以發出作動信號給開鎖致動器140,使其開鎖。The details of the electronic lock 100 disclosed in this embodiment are further described below. The unlocking operation will be described first. The identification module 132 is capable of processing at least 5 sets of unlocking codes UC. The identification module 132 can determine a group of unlocking codes UC continuously or at the same time, and control the number of unlocking groups according to the setting of the security level setting module 138. code. Each group of unlocking codes UC may include an electronic lock identification code RXID or an unlocking controller identification code TXID, and various action control codes. When the electronic lock 100 receives a wireless RF unlocking signal from the unlocking controller 200 via the wireless receiving unit 110, it is recognized by the identification module 132. At this time, the identification module 132 may send a timing signal to the timing module 134 upon receiving the unlock signal, or may issue a timing signal to the timing module 134 after identifying the first set of unlocking identification codes. When timing, the timing module 134 sends a timeout signal after a set time after the timing starts. When the identification module 132 recognizes the correct unlocking identification code of the set number of sets, it transmits an identification pass signal to the operating signal generation module 136. At this time, the operation signal generating module 136 also refers to the signal from the timing module 134. If the time-out signal is received when the identification pass signal is received, the operation signal will not be issued; if the time-out signal has not been received, The signal can send an actuation signal to the unlocking actuator 140 to unlock it.

其次,就安全等級設定作說明。在上述情形中,使用者可自行依其想要設定的解鎖識別碼組數,以及該等組數的識別時限,進行設定,以設定出不同等級的安全性。這其中的設定當然也要配合解鎖識別碼IP的設定,即在使用者初始設定解鎖識別碼IP時,即要決定要以多少組解鎖碼UC來進行解鎖,並了解該等解鎖碼UC被識別模組132識別所需時間,以進行安全等級設定模組135之設定。藉由特定時段內完成識別之設計,將可防止偷竊者以掃碼方式破解解鎖碼UC,因為掃碼需要一段更長時間。藉由安全等級之可變更設定,將使電子鎖100之編碼規則更多變化,而使其可應用的功能更多變化,且令偷竊者更難猜到密碼。Next, the security level setting will be explained. In the above situation, the user can set according to the number of unlocking identification code groups and the identification time limit of these groups to set different levels of security. Of course, the settings must also match the setting of the unlocking identification code IP. That is, when the user initially sets the unlocking identification code IP, it is necessary to decide how many unlocking codes UC are to be used for unlocking, and understand that such unlocking codes UC are recognized. The module 132 recognizes the time required to perform the setting of the security level setting module 135. By designing the identification within a certain period of time, it will prevent a thief from cracking the unlock code UC by scanning the code, because scanning the code takes a longer time. By changing the setting of the security level, the coding rules of the electronic lock 100 will be changed more, the applicable functions will be changed more, and it will be more difficult for a thief to guess the password.

例如,依安全性,可以分為下列等級,使用者可依應用需求,自行設定中/高安全性鎖。例如,低安全性者:使用一組解鎖碼;中安全性者:使用二組解鎖碼;高安全性者:需同時接收(在1秒以內)二組解鎖碼或識別二組解鎖識別碼才能解鎖;超高安全性(金庫等級)者:需同時接收(在1秒以內)三組解鎖碼或識別二組解鎖識別碼才能解鎖。For example, according to security, it can be divided into the following levels. Users can set medium / high security locks according to application requirements. For example, those with low security: use one set of unlocking codes; those with medium security: use two sets of unlocking codes; those with high security: need to receive (within 1 second) two sets of unlocking codes at the same time or identify two sets of unlocking identification codes Unlocking; ultra-high security (treasury level): need to receive (within 1 second) three sets of unlocking codes or identify two sets of unlocking identification codes at the same time to unlock.

至於解鎖識別碼之設定,尤其是設定電子鎖識別碼RXID或群組碼GID時,在一較佳實施例中,使用者利用一電腦及安裝其中的編碼設定應用程式,讓電腦以隨機編碼的方式設定出解鎖識別碼IP。之後,再透過設定輸入埠150,將解鎖識別碼IP儲存在電子鎖100之儲存單元120中。同時,此解鎖識別碼IP也會透過開鎖控制器200之設定輸出/入埠250,而被儲存在開鎖控制器200之儲存單元220中。其中,在一變形例中,解鎖識別碼IP之設定也可以是讓使用者由一載入有解鎖識別碼設定模組(未顯示)的開鎖控制器進行,再由使用者從開鎖控制器,將解鎖識別碼IP經由設定輸出入埠250及設定輸入埠150,輸出至電子鎖100中。藉由此種方式,將隨機編碼之亂數設定到例如16個位元,將可以產生高達6萬5千多組解鎖識別碼,在需要更高安全性時,更可以解鎖識別碼設定到64個位元。其中,電子鎖100與開鎖控制器200都被輸入相同的配對解鎖識別碼IP,使用者不用去記解鎖碼,因而不會有忘記密碼,或是因為記錄在哪裡而被竊取的問題。一組解鎖碼即相當複雜了,當使用二組以上解鎖碼,且要在特定時間內解密,更是難以被竊取。As for the setting of the unlocking identification code, especially when the electronic lock identification code RXID or the group code GID is set, in a preferred embodiment, the user uses a computer and installs a code setting application program therein to allow the computer to randomly encode Set the unlocking identification code IP. After that, the unlocking identification code IP is stored in the storage unit 120 of the electronic lock 100 through the setting input port 150. At the same time, the unlocking identification code IP is also stored in the storage unit 220 of the unlocking controller 200 through the setting output / entry port 250 of the unlocking controller 200. Among them, in a modification, the setting of the unlocking identification code IP may also be performed by the user through an unlocking controller loaded with an unlocking identification code setting module (not shown), and then the user from the unlocking controller, The unlocking identification code IP is output to the electronic lock 100 through the setting input port 250 and the setting input port 150. In this way, setting the random number of random encoding to, for example, 16 bits can generate more than 65,000 unlocking identification codes. When higher security is required, the unlocking identification code can be set to 64. Bits. The electronic lock 100 and the unlocking controller 200 are input with the same pairing unlocking identification code IP, and the user does not need to remember the unlocking code, so there is no problem of forgetting the password or being stolen because of where it is recorded. One set of unlocking codes is quite complicated. When two or more sets of unlocking codes are used, and they need to be decrypted within a certain time, it is even more difficult to steal.

而且,由於解鎖識別碼IP是使用者自行設定的,電子鎖100與開鎖控制器200將不會受限於電子鎖製造商之編碼配對。當開鎖控制器200不慎遺失時,使用者只要再購入一開鎖控制器200進行重新設定,將新的解鎖識別碼IP重新寫入電子鎖與開鎖控制器即可,而不用換掉整組電子鎖系統。再者,由於電子鎖上完全沒有按鍵,並非習知透過電子鎖上之按鍵設定密碼並進行開鎖者,將不會有殘留開鎖按鍵的痕跡,且在門外將完全看不到電子鎖的位置,而不會有容易被破壞的情形。Moreover, since the unlocking identification code IP is set by the user, the electronic lock 100 and the unlocking controller 200 will not be limited by the code pairing of the electronic lock manufacturer. When the unlocking controller 200 is lost accidentally, the user only needs to purchase another unlocking controller 200 for resetting, and rewrite the new unlocking identification code IP into the electronic lock and unlocking controller without replacing the entire group of electronics. Lock system. Furthermore, since there are no buttons on the electronic lock at all, it is not familiar to those who set the password and unlock the lock through the keys on the electronic lock, there will be no traces of the remaining unlock buttons, and the position of the electronic lock will be completely invisible outside the door. There won't be situations that can be easily destroyed.

又,在本實施例中,是使用二組解鎖碼進行開鎖。在一變形例中,其中一組解鎖碼可包含開鎖控制器200本身之識別碼,以作為身分識別。亦即,當一開鎖控制器200被用來解開兩個以上電子鎖100,或有二個以上開鎖控制器200被用來解開一個電子鎖100時,可將兩電子鎖100中預定接收之二組解鎖碼中的一組,設為包含開鎖控制器200的識別碼TXID,此時之開鎖控制器識別碼TXID可以是由使用者指定之序號及/或名字,也可以是經由電腦以隨機方式產生,並被記錄起來而應用在多個電子鎖100的配對中。如此,即可依選擇,而一併傳送另一組各別電子鎖或共用電子鎖的對應識別碼,而開啟被授權的電子鎖。因此,藉由將電子鎖100所要識別的解鎖識別碼IP其中之一組,設定為開鎖控制器識別碼TXID,除了可用一個開鎖控制器200來開啟多個電子鎖,或用多個開鎖控制器200來開啟一個電子鎖、或多對多之外,也可以讓電子鎖100用來記錄曾經開鎖過的每個開鎖控制器200,例如保留十次,或千次以上,將可進一步作為管理與監督之用。Moreover, in this embodiment, unlocking is performed by using two sets of unlock codes. In a variant, one of the unlocking codes may include an identification code of the unlocking controller 200 itself as an identification. That is, when one unlocking controller 200 is used to unlock two or more electronic locks 100, or two or more unlocking controllers 200 are used to unlock one electronic lock 100, a predetermined one of the two electronic locks 100 may be received. One of the two sets of unlocking codes is set to include the identification code TXID of the unlocking controller 200. At this time, the unlocking controller identification code TXID can be a serial number and / or name specified by the user, or it can be accessed by a computer. Generated randomly, and recorded and applied to the pairing of multiple electronic locks 100. In this way, according to the choice, the corresponding identification code of another group of electronic locks or shared electronic locks can be transmitted together to open the authorized electronic lock. Therefore, by setting one of the unlocking identification codes IP to be recognized by the electronic lock 100 as the unlocking controller identification code TXID, in addition to using one unlocking controller 200 to unlock multiple electronic locks or using multiple unlocking controllers 200 to open an electronic lock, or many-to-many, the electronic lock 100 can also be used to record each unlocked controller 200 that has been unlocked, for example, ten times, or more than a thousand times, will be further used as management and For monitoring purposes.

又,接著在另一變形例中,也可以設定三組以上之解鎖識別碼IP,並讓其中之兩組解鎖識別碼IP關於二開鎖控制器識別碼TXID。如此一來,即可設定成需要兩個保管不同開鎖控制器200的使用人同時到場才能開啟的要求。亦即各開鎖控制器200包含各別的開鎖控制器識別碼TXID,與共同的另一組電子鎖識別碼RXID。同樣地,在另一變形例中,也可以只在電子鎖100中儲存兩組識別碼IP,並將該兩組識別碼IP設定成是兩個開鎖控制器200的開鎖控制器識別碼TXID,亦即,每一開鎖控制器200供發射其中一組解鎖識別碼IP,使電子鎖100需要兩開鎖控制器200同時進行開鎖時才能被開啟。Furthermore, in another modification, three or more sets of unlocking identification codes IP may be set, and two sets of unlocking identification codes IP may be related to the two unlocking controller identification codes TXID. In this way, a requirement can be set that requires two users who keep different unlocking controllers 200 to be present at the same time to open. That is, each unlocking controller 200 includes a respective unlocking controller identification code TXID and another set of electronic lock identification codes RXID in common. Similarly, in another modification, only two sets of identification codes IP may be stored in the electronic lock 100, and the two sets of identification codes IP may be set as the unlocking controller identification codes TXID of the two unlocking controllers 200, That is, each unlocking controller 200 is used to transmit a set of unlocking identification codes IP, so that the electronic lock 100 can be unlocked only when the two unlocking controllers 200 are unlocked simultaneously.

因此,在又另一變形例中,也可以將電子鎖100設定成需要四組解鎖識別碼IP,其中兩組有關兩開鎖控制器識別碼TXID,兩組有關電子鎖的解鎖識別碼RXID,分別由兩開鎖控制器200所發送。如此,讓不同人保有不同開鎖控制器200時,將可以提供一種更為嚴密的開鎖機制。又,相反於上述可解鎖情形,也可以在將其中一組解鎖識別碼IP設定為開鎖控制器識別碼TXID時,藉由識別開鎖控制器識別碼TXID,而禁止某一例如遺失或被盜之開鎖控制器200進行開鎖動作,亦即設定不可解鎖的開鎖控制器。Therefore, in yet another modification, the electronic lock 100 may also be set to require four sets of unlocking identification codes IP, of which two sets are related to two unlocking controller identification codes TXID, and two sets are related to electronic lock unlocking identification codes RXID, respectively. Send by two unlock controllers 200. In this way, when different people keep different unlocking controllers 200, a more stringent unlocking mechanism can be provided. In addition, in contrast to the unlockable situation described above, when one set of unlocking identification code IP is set as the unlocking controller identification code TXID, a certain unlocking controller identifying code TXID can be used to prohibit a certain lost or stolen one, for example. The unlock controller 200 performs an unlock operation, that is, sets an unlock controller that cannot be unlocked.

因此,綜合各種應用例,本發明藉由將所揭電子鎖系統中的電子鎖100設定成要能識別至少二組解鎖識別碼,並將開鎖控制器200設定成能發射該至少二組解鎖識別碼之至少其中之一,將可以達成各種不同的應用與功能。Therefore, to synthesize various application examples, the present invention sets the electronic lock 100 in the disclosed electronic lock system to recognize at least two sets of unlocking identification codes, and sets the unlocking controller 200 to be able to transmit the at least two sets of unlocking identifications. At least one of these codes can achieve a variety of different applications and functions.

以下,進一步說明電力警示單元170之動作細節。在本實施例中,當使用電池作為電子鎖100的電源時,此電力警示單元170會進行電池電力監測,並在電力剩下15%時,先使一LED燈(未顯示)亮紅燈,且/或每1小時蜂嗚器(未顯示)叫一聲。當電力剩下5%時,使電子鎖100停止接收解鎖信號,解鎖動作進入休眠。此時,開鎖控制器200即使發出正確解鎖訊號,電子鎖100仍不會開鎖。使用者必需先透過開鎖控制器200的電力更換確認模組232,例如在開鎖控制器200之設定項目中的〝電力不足〞項目中點選〝己更換電池〞,讓開鎖控制器200發出一電力更換確認碼PC,電子鎖100收到後可暫時解除休眠狀態,以進行解鎖碼UC之接收,並對解鎖信號進行正常的識別程序。之後,若使用者仍未在開鎖之後更換電池,電子鎖100將繼續進入休眠狀態,使得開鎖控制器200要再次開鎖時,仍要進行繁複的點選動作,以利提醒使用者更換電池,直到電池真的沒電了。The operation details of the power warning unit 170 are further described below. In this embodiment, when a battery is used as the power source of the electronic lock 100, the power warning unit 170 monitors the battery power and turns on an LED (not shown) first when the power is 15%. And / or beep every 1 hour (not shown). When the power is 5%, the electronic lock 100 stops receiving the unlocking signal, and the unlocking operation enters sleep. At this time, even if the unlock controller 200 issues a correct unlock signal, the electronic lock 100 will not unlock. The user must first replace the confirmation module 232 with the power of the unlocking controller 200, for example, click "replaced battery" in the "insufficient power" item in the setting item of the unlocking controller 200, and let the unlocking controller 200 issue a power After replacing the confirmation code PC, the electronic lock 100 can temporarily release the sleep state after receiving, so as to receive the unlock code UC, and perform the normal identification procedure for the unlock signal. After that, if the user does not replace the battery after unlocking, the electronic lock 100 will continue to enter the sleep state, so that when the unlocking controller 200 is to be unlocked again, a complicated clicking operation is still performed to remind the user to replace the battery until The battery is really dead.

綜合上述,本發明所揭電子鎖可以提供一種由使用者自主建構解鎖密碼之隱藏式多功能電子鎖,且能以一簡單架構,提供安全且適於多種用途與應用的電子鎖。To sum up, the electronic lock disclosed by the present invention can provide a hidden multifunctional electronic lock with an unlocking password independently constructed by a user, and can provide a safe and suitable electronic lock with a simple structure for a variety of uses and applications.

又,在本實施例中,開鎖控制器200是以RF的方式來傳送解鎖碼UC,並不需要透過網際網路來進行,因而可以減少維護成本,避免網路駭客攻擊。至於傳送的方式,可以是業界熟知之直接依序傳送解鎖碼各位元的定碼方式、對解鎖碼加以滾碼的方式、或是加密傳送方式,再由電子鎖100之識別模組進行解碼、解密與識別。有關加密傳送方式,以下將進一步以第二實施例搭配第一實施例之組成,說明一種安全的加密傳碼與解碼方式。根據本發明之第二實施例所揭的電子鎖系統,電子鎖與開鎖控制器之大部分元件與第一實施例相同,故引用相同元件及標號作說明,並簡略相同元件之說明。 In addition, in this embodiment, the unlocking controller 200 transmits the unlocking code UC in an RF manner, and does not need to be performed through the Internet. Therefore, the maintenance cost can be reduced and a hacker attack can be avoided. As for the transmission method, it can be a well-known method in the industry that directly transmits the unlocking code bits, rolling the unlocking code, or an encrypted transmission method, which is then decoded by the identification module of the electronic lock 100, Decryption and identification. Regarding the encrypted transmission method, a combination of the second embodiment and the first embodiment will be further described below to describe a secure encrypted code transmission and decoding method. According to the electronic lock system disclosed in the second embodiment of the present invention, most components of the electronic lock and the unlocking controller are the same as those of the first embodiment, so the same components and reference numerals are used for description, and the description of the same components is briefly described.

如圖3所示,在本實施例中,開鎖控制器200之控制單元230還具有一基數產生模組234、一加密模組236、與一控制時間限定模組238,且儲存單元220中除了儲存設定好的電子鎖識別碼RXID作為解鎖識別碼IP之外,還儲存有一金鑰庫,其含有至少一個密碼金鑰,一個金鑰可以是一例如64位元的金鑰,可由亂數產生裝置(未圖示)隨機產生,且金鑰的數量可依整個系統的應用需求而定,並可多達例如100個。在本實施例中各金鑰是出廠時即被設定在開鎖控制器200中,但在一變形實施例中,也可以由使用者透過電腦程式以亂數的方式產生,再由使用者將設定好的各金鑰輸入開鎖控制器200中。在進一步變形實施例中,儲存單元220亦儲存有代表開鎖控制器本身之開鎖控制器識別碼TXID,以供作為辨識解鎖之開鎖控制器200之用。As shown in FIG. 3, in this embodiment, the control unit 230 of the unlocking controller 200 further includes a base generating module 234, an encryption module 236, and a control time limiting module 238. Store the set electronic lock identification code RXID as the unlocking identification code IP, and also store a key library, which contains at least one cryptographic key. A key can be a 64-bit key, which can be generated by random numbers. The device (not shown) is randomly generated, and the number of keys can be determined according to the application requirements of the entire system, and can be up to 100, for example. In this embodiment, each key is set in the unlocking controller 200 when it leaves the factory, but in a modified embodiment, it can also be generated by the user in a random manner through a computer program, and then set by the user. The good keys are input into the unlock controller 200. In a further modified embodiment, the storage unit 220 also stores an unlocking controller identification code TXID representing the unlocking controller itself, for use as an unlocking controller 200 for identifying unlocking.

該基數產生模組234用以產生一動態基數或稱祕密基數,其可以是一亂數,也可以是一計數用的計數。當基數產生模組234以計數器來實現時,即在每次開鎖控制器200發出一含有該基數及解鎖識別碼IP的解鎖碼UC時,將該計數累加一例如1的特定值,並儲存該值,以供後續發送。加密模組236含有一第一加密子模組、第二加密子模組、以及一決定子模組(未圖示)。用以至少對解鎖識別碼IP進行加密。控制時間限定模組238用以限定該開鎖控制器200可進行解鎖控制的時間。The cardinality generating module 234 is used to generate a dynamic cardinality or a secret cardinality, which may be a random number or a counting number. When the cardinality generating module 234 is implemented by a counter, that is, each time the unlocking controller 200 issues an unlocking code UC containing the cardinality and the unlocking identification code IP, the count is accumulated by a specific value such as 1, and the value is stored. Value for subsequent sending. The encryption module 236 includes a first encryption submodule, a second encryption submodule, and a decision submodule (not shown). It is used to encrypt at least the unlocking identification code IP. The control time limiting module 238 is used to limit the time during which the unlocking controller 200 can perform the unlocking control.

以下,以圖4說明開鎖控制器200傳送解鎖碼UC之一種加密方法。首先,基數產生模組234產生一基數X;接著控制單元230機定取得儲存單元之金鑰庫中的一第一金鑰作為初始金鑰K0,例如100個金鑰中之第一個金鑰,再以該金鑰K0和該基數X,透過加密模組236中的第一加密子模組(未圖示),產生一組加密基數碼ENSD。接著,再根據此加密基數碼ENSD,經由加密模組236中的一決定子模組(未圖示),決定出儲存單元220之金鑰庫中所要被選擇之第二金鑰,例如第33個金鑰,作為動態加密金鑰KE。其中之第一加密子模組及決定子模組可以是一硬體構造,也可以是一軟體程式運算式。Hereinafter, an encryption method in which the unlocking controller 200 transmits the unlocking code UC will be described with reference to FIG. 4. First, the cardinality generating module 234 generates a cardinality X; then the control unit 230 determines to obtain a first key in the key library of the storage unit as the initial key K0, for example, the first key among 100 keys , And then use the key K0 and the base number X to generate a set of encrypted base digital ENSD through a first encryption sub-module (not shown) in the encryption module 236. Then, according to the encryption-based digital ENSD, a second sub-key to be selected in the key library of the storage unit 220 is determined through a decision sub-module (not shown) in the encryption module 236, for example, the 33rd key. Keys as dynamic encryption key KE. The first encryption sub-module and the determination sub-module may be a hardware structure or a software program expression.

在一變形實施例中,此時該決定子模組要決定之第二金鑰或動態加密金鑰,亦可以根據基數X與初始金鑰K0,或是單獨根據基數X,透過程式產生,而非根據加密基數碼ENSD產生。總之,可以直接或間接根據基數X產生。In a variant embodiment, at this time, the second key or the dynamic encryption key to be determined by the decision sub-module may also be generated through a program based on the base X and the initial key K0, or based on the base X alone. Not based on cryptographic digital ENSD. In short, it can be generated directly or indirectly from the base X.

在另一變形實施例中,在金鑰庫中並沒有儲存到100個金鑰,該決定模組並非用以決定出要從金鑰庫中選擇哪一金鑰作為第二金鑰或動態加密金鑰KE,而是直接以該基數X與初始金鑰K0,或單以該基數X,直接產生該第二金鑰或動態加密金鑰KE。如此一來,即不用在開鎖控制器200中儲存大量的金鑰。In another modified embodiment, 100 keys are not stored in the key library, and the determination module is not used to determine which key to choose from the key library as the second key or dynamic encryption. The key KE directly generates the second key or the dynamic encryption key KE directly from the base X and the initial key K0, or only from the base X. In this way, there is no need to store a large number of keys in the unlocking controller 200.

在又另一變形例中,該動態加密金鑰KE也可以是亂數隨機產生,不一定要根據該基數X再透過程式產生。加密時,可將基數X與動態加密金鑰KE區分好位元位置,一起透過初始金鑰K0及加密程式,加密出該加密基數碼ENSD。解密時,再依位元位置區分,取出基數X,再由剩餘部分取出動態加密金鑰KE。In yet another modification, the dynamic encryption key KE may be randomly generated randomly, and does not necessarily need to be generated through a program according to the base X. During encryption, the base number X and the dynamic encryption key KE can be used to distinguish the bit positions, and together with the initial key K0 and the encryption program, the encryption base digital ENSD is encrypted. When decrypting, it is distinguished according to the bit position, the base X is taken out, and the dynamic encryption key KE is taken out from the remaining part.

在又另一變形實施例中,在決定出該動態加密金鑰KE之前,也可以先以該初始金鑰K0與該基數X,產生至少一個中間金鑰,再以該至少一個中間金鑰產出該動態加密金鑰KE,亦即產出多階中間金鑰,以增加加密複雜程度。詳言之,例如於根據初始金鑰K0與基數X產生第二金鑰後,再根據該第二金鑰與基數X,產生一第三金鑰;然後,再根據該第三金鑰與基數X,透過該決定模組,產生一第四金鑰作為該動態加密金鑰KE;以此類推,其中之第二、第三金鑰即為中間金鑰。In yet another modified embodiment, before the dynamic encryption key KE is determined, at least one intermediate key may be generated from the initial key K0 and the base X, and then the at least one intermediate key may be used to generate the dynamic encryption key KE. The dynamic encryption key KE is generated, that is, a multi-level intermediate key is generated to increase the complexity of encryption. In detail, for example, after generating a second key based on the initial key K0 and the base X, a third key is generated based on the second key and the base X; and then, based on the third key and the base X, through the decision module, generates a fourth key as the dynamic encryption key KE; and so on, the second and third keys are intermediate keys.

由上述各種變形實施例可知,動態加密金鑰KE的產生方式可以有很多種變形,而加密基數碼ENSD也可以只含有基數X成分,或含蓋基數X與動態加密金鑰KE一起加密,只要電子鎖100與開鎖控制器200之間有相對應的設計配合即可。It can be known from the above various modified embodiments that the generation method of the dynamic encryption key KE can be modified in many ways, and the encryption-based digital ENSD can only contain the base X component, or cover the base X together with the dynamic encryption key KE, as long as A corresponding design cooperation between the electronic lock 100 and the unlocking controller 200 is sufficient.

然後,於產出動態加密金鑰KE後,再以此動態加密金鑰KE和儲存單元220中所儲存之已設定好的解鎖識別碼IP,透過加密模組236中之一第二加密子模組(未圖示),產生一組加密解鎖碼ENFD。之後,控制單元230即可將前述加密基數碼ENSD,與加密解鎖碼ENFD,送至無線發射單元210,發射一解鎖信號給電子鎖接收。其中之第二加密子模組可以是一硬體構造,也可以是一軟體程式運算式。Then, after the dynamic encryption key KE is generated, the dynamic encryption key KE and the set unlocking identification IP stored in the storage unit 220 are used to pass one of the second encryption sub-modules in the encryption module 236. Group (not shown) to generate a set of encrypted unlock codes ENFD. After that, the control unit 230 can send the aforementioned encrypted digital ENSD and the encrypted unlock code ENFD to the wireless transmitting unit 210, and transmit an unlock signal to the electronic lock for receiving. The second encryption sub-module can be a hardware structure or a software program expression.

在一進一步變形實施例中,如前所述,儲存單元220亦儲存有一代表開鎖控制器本身之開鎖控制器識別碼TXID,此碼可以是一類似於金鑰等級之識別碼,也可以僅是一序號;可以是使用者自訂,或是出廠時即被編碼之金鑰,並給予序號供選擇使用。在發送該加密基數碼ENSD與該加密解鎖碼ENFD之同時,此控制器識別碼也可同時在加密後或不加密被發出,供各種不同應用之解鎖辨識用。在本變形實施例中,係根據控制器識別碼TXID與金鑰庫中之一初始金鑰K0,經由加密模組236,而產生一加密控制器識別碼ENTX。在又一變形例中,當控制器識別碼TXID本身也是一金鑰時,也可以根據控制器識別碼TXID與基數X,經由加密模組236,產生該加密控制器識別碼ENTX。又,在另一變形例中,此控制器識別碼也可以不用加密而直接隨同加密基數碼ENSD與加密解鎖碼ENFD發出。In a further modified embodiment, as described above, the storage unit 220 also stores an unlocking controller identification code TXID representing the unlocking controller itself. This code may be an identification code similar to the key level, or may be only A serial number; it can be a user-defined key or a key that is encoded at the factory and given a serial number for optional use. When the encrypted base digital ENSD and the encrypted unlocking code ENFD are sent, the controller identification code can also be sent after being encrypted or unencrypted for unlocking identification of various applications. In this modified embodiment, an encrypted controller identification code ENTX is generated through the encryption module 236 according to the controller identification code TXID and an initial key K0 in the key library. In another modification, when the controller identification code TXID is also a key, the encrypted controller identification code ENTX may also be generated through the encryption module 236 according to the controller identification code TXID and the base number X. Also, in another modification, the controller identification code may be sent directly with the encryption base digital ENSD and the encryption unlocking code ENFD without encryption.

又,在一變形實施例中,利用在開鎖控制器中儲存有多數開鎖控制器識別碼,開鎖控制器200可以有子母開鎖控制器之分。當要讓電子鎖100可以被新增的子開鎖控制器200所遙控時,或是開鎖控制器200有遺失而要新增子開鎖控制器200時,新增的子開鎖控制器200只能從母開鎖控制器中取得多數開鎖控制器識別碼至少其中之一,且只使用一從母開鎖控制器取得的開鎖控制器識別碼,而不能再分用給其他子開鎖控制器。而母開鎖控制器中的各識別碼被分用了以後,即不能再被重複分用,如此的好處是可以管制開鎖控制器相對於電子鎖的數量。數量及識別碼都儲存在母開鎖控制器中,母開鎖控制器可以發配設定好的多數識別碼其中之一給子開鎖控制器,但子開鎖控制器不能再複製給其他子開鎖控制器。藉此,用以便利管控密碼的設定、電子鎖的識別設定、以及開鎖控制器的管制等。Furthermore, in a modified embodiment, the unlocking controller 200 may be divided into a parent unlocking controller by using a plurality of unlocking controller identification codes stored in the unlocking controller. When the electronic lock 100 is to be remotely controlled by the newly-added sub-unlocking controller 200, or when the unlocking controller 200 is missing and a sub-unlocking controller 200 is to be added, the newly-added sub-unlocking controller 200 can only be accessed from The master unlocking controller obtains at least one of the majority of the unlocking controller identification codes, and only uses one unlocking controller identification code obtained from the master unlocking controller, and cannot be assigned to other slave unlocking controllers. After each identification code in the female unlock controller is divided, it cannot be reused again. The advantage is that the number of unlock controllers relative to the electronic lock can be controlled. The quantity and identification code are stored in the parent unlock controller. The parent unlock controller can assign one of the set majority identification codes to the child unlock controller, but the child unlock controller cannot be copied to other child unlock controllers. This is used to facilitate the setting of the control password, the identification setting of the electronic lock, and the control of the unlocking controller.

又,在一變形例中,子開鎖控制器設定成跟母開鎖控制器一樣多的開鎖控制器識別碼TXID,但被限定不能再複製給其他子開鎖控制器。在此例中,開鎖控制器識別碼TXID,可以只是一個序號,也可以是不同的金鑰,可以由使用者自編,也可以在產品出廠時即被設定。Moreover, in a modification, the child unlock controller is set to have as many unlock controller identification codes TXID as the mother unlock controller, but it is restricted from being copied to other child unlock controllers. In this example, the unlocking controller identification code TXID can be just a serial number, or a different key, which can be edited by the user or set when the product leaves the factory.

又,在母開鎖控制器授權控制權給子開鎖控制器時,可以同時透過控制時間限定模組238對各子開鎖控制器,設定其被授權開鎖的時段。在一有限定授權時間的例子中,可以設定成母開鎖控制器中的預設組數控制器識別碼則可以被重複給子開鎖控制器使用,只要時間錯開即可。如此,可以擴展應用,例如只開放給持有子開鎖控制器的人在某一時段進行開鎖。In addition, when the mother unlocking controller authorizes the control right to the child unlocking controllers, the child unlocking controllers can be set at the same time through the control time limit module 238 to set the period during which they are authorized to unlock. In an example with a limited authorization time, the controller identification code that can be set to a preset group number in the parent unlock controller can be reused for the child unlock controller, as long as the times are staggered. In this way, the application can be expanded, for example, it is only open to a person who holds the child unlock controller to unlock at a certain period of time.

又,在上述開鎖控制器所儲存之金鑰庫不只有一個,並給予每個開鎖控制器有多個序號,作為可供選擇或是限定分配用的開鎖控制器識別碼TXID時,其加密方法也可以進階進化如下。在此變形實施例中,金鑰庫中的各金鑰可以在產品出廠前即被設定,也可以由使用者自行設定,或自行以亂數產生。以20個金鑰為例,開鎖控制器識別碼TXID編為序號TX1~TX20,將有一個共用的初始金鑰K0,以及動態加密金鑰K1-K20,供分配給不同子開鎖控制器,或給不同電子鎖使用。且設定成各開鎖控制器識別碼TXID各對應於金鑰庫中的其中一金鑰。可以想見的,在一變形例中,各開鎖控制器識別碼所對應的金鑰庫,也可以是單獨的金鑰庫,而與加密用的金鑰庫有所不同。In addition, when there is more than one key library stored in the unlocking controller, and each unlocking controller is given a plurality of serial numbers, as an unlocking controller identification code TXID that can be selected or restricted for distribution, its encryption method It can also be advanced as follows. In this modified embodiment, each key in the key library can be set before the product leaves the factory, it can also be set by the user, or it can be randomly generated. Take 20 keys as an example, the unlocking controller identification code TXID is coded as the serial numbers TX1 ~ TX20, and there will be a shared initial key K0 and a dynamic encryption key K1-K20 for distribution to different sub-unlock controllers, or For different electronic locks. And each unlocking controller identification code TXID is set to correspond to one of the keys in the key library. It is conceivable that in a modification, the key library corresponding to each unlocking controller identification code may also be a separate key library, which is different from the key library used for encryption.

如圖4所示,在此種例子中,於開始加密之前,使用者在初始設定一開鎖控制器時,要先指定要用哪一序號,作為開鎖控制器識別碼TXID,例如第2號TX2。要發送信號而開始加密時,即先以一初始金鑰K0,對所選定的序號TX2進行加密,而產生一ENTX。接著,再以選定之序號所對應的金鑰,例如K2,作為新初始金鑰NK0,對基數X進行加密,而產生一如前面所述的加密基數碼ENSD。之後的加密動作,則如前面所述一樣,可以用新初始金鑰進行加密即可,或是再加上動態加密金鑰KE進行加密。相較於前面所述實施例,當初始金鑰K0是產品出廠時即統一被設定好時,在本變形例中對基數X進行加密的金鑰,並非前面所述固定的K0,而是會依使用者之設定而變的新初始金鑰NK0,如此的好處是,可以增加加密金鑰的變化性,而更不容易被解碼,而且可適用於開鎖控制器數量管控。As shown in Figure 4, in this example, before the encryption is started, when the user initially sets an unlocking controller, he must first specify which serial number to use as the unlocking controller identification code TXID, such as TX2, the second . To send a signal and start encryption, first use an initial key K0 to encrypt the selected serial number TX2 to generate an ENTX. Then, the key corresponding to the selected serial number, such as K2, is used as the new initial key NK0 to encrypt the base X to generate an encrypted base digital ENSD as described above. The subsequent encryption actions can be encrypted with a new initial key, as described above, or encrypted with a dynamic encryption key KE. Compared to the previous embodiment, when the initial key K0 is uniformly set when the product is shipped from the factory, the key for encrypting the base X in this modification is not the fixed K0 described above, but will be The new initial key NK0, which changes according to the user's settings, has the advantage that the variability of the encryption key can be increased, and it is more difficult to decode, and it can be applied to the number of unlocking controllers.

以下,另對電子鎖100方面作一說明。如圖5所示,本實施例之電子鎖100之處理單元130還具有一解密模組138,解密模組138包含有與開鎖控制器200相對應運作設定的第一與第二解密子模組(未圖示),以及一決定子模組(未圖示)。儲存單元120中除了儲存有設定好之供比對的解鎖識別碼之外,還用以儲存一與開鎖控制器200中所存金鑰庫一樣的金鑰庫,亦即,包含多個密碼金鑰,每個金鑰可以是64位元的金鑰,此金鑰數量可以任意設定而多達100個。惟,在一變形實施例中,儲存單元120中的金鑰庫並沒有儲存一與開鎖控制器200中之金鑰庫一樣的金鑰,而是只儲存有一與開鎖控制器200一樣的協定初始金鑰K0即可。Hereinafter, another aspect of the electronic lock 100 will be described. As shown in FIG. 5, the processing unit 130 of the electronic lock 100 of this embodiment further has a decryption module 138, and the decryption module 138 includes first and second decryption sub-modules that are set to operate corresponding to the unlock controller 200. (Not shown), and a decision sub-module (not shown). In addition to storing the unlocked identification code set for comparison in the storage unit 120, the storage unit 120 is also used to store a key library that is the same as the key library stored in the unlock controller 200, that is, it contains multiple password keys Each key can be a 64-bit key, and the number of this key can be arbitrarily set up to 100. However, in a modified embodiment, the key store in the storage unit 120 does not store a key identical to the key store in the unlocking controller 200, but only stores a protocol initial same as that of the unlocking controller 200. The key K0 is sufficient.

以下,以圖6說明電子鎖100之解碼過程。當電子鎖100收到傳送碼ENSD與ENFD時,會先由識別模組132判斷出是哪一種碼,以決定要解出多少碼。接著,由於電子鎖100中亦儲存有例如100組金鑰之金鑰庫,且配合開鎖控制器之設定而亦機定第一個金鑰為初始金鑰K0,因此,電子鎖100收到傳送來的RF訊號時,即先以初始金鑰K0對所收到的加密基數碼ENSD以解密模組138中的第一解密子模組進行解密,而推算出開鎖控制器200之基數產生模組234所產生的基數X。接著,即以所解密出來的基數X,透過解密模組138中,具有與開鎖控制器200相同邏輯設計的決定子模組(未圖示),決定出金鑰庫中的一第二金鑰,此時之第二金鑰是與開鎖控制器200中之動態加密金鑰KE是相同的,因而以下將此求得的第二金鑰亦稱之為動態加密金鑰KE。Hereinafter, the decoding process of the electronic lock 100 will be described with reference to FIG. 6. When the electronic lock 100 receives the transmission codes ENSD and ENFD, the identification module 132 first determines which type of code to determine how many codes to solve. Then, because the electronic lock 100 also stores a key library of, for example, 100 sets of keys, and the first key is set as the initial key K0 with the setting of the unlocking controller, the electronic lock 100 receives the transmission When the incoming RF signal is received, the received encryption base digital ENSD is first decrypted with the initial key K0 and the first decryption sub-module in the decryption module 138, and the cardinality generation module of the unlocking controller 200 is calculated. The radix X produced by 234. Then, based on the decrypted base number X, through the decryption module 138, a decision sub-module (not shown) having the same logical design as the unlock controller 200 is used to determine a second key in the key library. At this time, the second key is the same as the dynamic encryption key KE in the unlocking controller 200. Therefore, the obtained second key is hereinafter also referred to as a dynamic encryption key KE.

又,如前所述,當儲存單元120儲存了一與開鎖控制器200一樣的金鑰庫時,是藉由從金鑰庫中找出被選擇的動態加密金鑰KE。然而,在一變形實施例中,當開鎖控制器200中的金鑰庫並非儲存很多金鑰,而是隨機根據基數X產生時,相對地,電子鎖100之儲存單元120亦不用儲存那麼多或一樣的金鑰,而只要以解密模組138就所解出的基數X,配合開鎖控制器200中的邏輯設定,直接解出動態加密金鑰KE即可。其中之解密子模組、決定子模組等同樣可以是一硬體構造,也可以是一軟體程式運算式。In addition, as described above, when the storage unit 120 stores a key library similar to the unlocking controller 200, the selected dynamic encryption key KE is found from the key library. However, in a variant embodiment, when the key library in the unlocking controller 200 does not store many keys, but is generated randomly based on the base X, relatively, the storage unit 120 of the electronic lock 100 does not need to store as many or The same key, as long as the base number X solved by the decryption module 138 is combined with the logical setting in the unlock controller 200 to directly solve the dynamic encryption key KE. The decryption sub-module and the decision sub-module can also be a hardware structure or a software program expression.

又,在另一變形實施例中,當開鎖控制器200設計成具有至少一個中間金鑰進行加密時,電子鎖100亦在解密模組138中,設計成解出該至少一個中間金鑰。亦即,在初始金鑰K0與加密金鑰KE之間設有至少一個中間金鑰時,由初始金鑰K0解出的第二金鑰是一中間金鑰,此時,再以該中間金鑰與前基數X,解出一第三金鑰,作為動態加密金鑰KE。有二個中間金鑰時,即以此類推。Also, in another modified embodiment, when the unlocking controller 200 is designed to have at least one intermediate key for encryption, the electronic lock 100 is also designed in the decryption module 138 to unlock the at least one intermediate key. That is, when at least one intermediate key is provided between the initial key K0 and the encryption key KE, the second key resolved by the initial key K0 is an intermediate key. At this time, the intermediate key is used again. Key and the previous radix X, a third key is solved as a dynamic encryption key KE. When there are two intermediate keys, the rest can be deduced by analogy.

然後,將收到的加密解鎖碼ENFD,透過第二解密子模組(未圖示)與前面解出之動態加密金鑰KE進行解密,即可得到所傳送的解鎖碼UC,而完成解密動作。之後,識別模組132即可就解密出來的解鎖碼UC與儲存單元120中所儲存的解鎖識別碼相比對,而判斷是否進行開鎖動作。Then, the received encryption and unlocking code ENFD is decrypted through the second decryption sub-module (not shown) and the dynamic encryption key KE that was previously solved to obtain the transmitted unlocking code UC and complete the decryption action. . After that, the identification module 132 can compare the decrypted unlocking code UC with the unlocking identification code stored in the storage unit 120 to determine whether to perform the unlocking operation.

又,在一變形實施例中,該處理單元130還包含一基數比對模組139,每解密出該基數X,該基數X即被儲存,並將該基數X與前一次所儲基數作比較,當其差為一特定值之範圍內時,或不同時,才能達成解密。尤其,當開鎖控制器200以計數來作為基數X時,電子鎖100端亦儲存所解密出來的新基數,只有在新基數與舊基數之間相符或相差在一特定範圍值時,才能解鎖。如此一來,即使無線信號被側錄,也無法重複使用,電子鎖100不會因為被側錄而被解鎖。尤其是當計數高達數十萬時,必須過了很多年才會重複,由此可見以計數作為基數之優點。Furthermore, in a modified embodiment, the processing unit 130 further includes a cardinality comparison module 139. Each time the cardinality X is decrypted, the cardinality X is stored, and the cardinality X is compared with the cardinality previously stored. , When the difference is within a specific value range, or different, decryption can be achieved. In particular, when the unlocking controller 200 uses the count as the base X, the electronic lock 100 also stores the decrypted new base. The unlock can only be unlocked if the new base and the old base match or differ in a specific range. In this way, even if the wireless signal is profiled, it cannot be reused, and the electronic lock 100 will not be unlocked because it is profiled. Especially when the count is as high as several hundred thousand, it must be repeated after many years, which shows the advantages of using count as the base.

又,由於在本實施例中,即使電子鎖100的解密模組138解出了作為基數的計數,也還要再以基數X解出動態加密金鑰KE,並再以該動態加密金鑰KE對加密解鎖碼ENFD進行解密,才能解出解鎖碼UC,該解鎖碼UC將更加難以被盜賊解碼。In addition, in this embodiment, even if the decryption module 138 of the electronic lock 100 solves the count as the base, the dynamic encryption key KE must be solved with the base X again, and the dynamic encryption key KE is used again. Only after decrypting the encryption and unlocking code ENFD can the unlocking code UC be unlocked, which will be more difficult for a thief to decode.

在又另一變形實施例中,當電子鎖100受控於多數開鎖控制器200,且以開鎖計數作為基數X時,儲存單元120儲存有一本記錄有各別對應於多數開鎖控制器之多數計數的計數庫。在此實施例中,電子鎖100在接收加密基數碼ENSD與加密解鎖碼ENFD時,會同時接收到加密或不加密的控制器識別碼ENTX或TXID。電子鎖100在識別出是哪一隻開鎖控制器200發出的訊號時,即就該控制器識別碼TXID,取得其對應的先前被開鎖計數,以作為判斷計數是否符合開鎖條件之基礎,並將新收到的計數儲存入計數庫中一相對應於該開鎖控制器編號的位置中。在此實施例中,依記憶體大小而定,可以儲存有多達100組的計數。In yet another modified embodiment, when the electronic lock 100 is controlled by the majority unlock controller 200 and the unlock count is used as the base X, the storage unit 120 stores a record with a majority count corresponding to each majority unlock controller. Counting library. In this embodiment, when the electronic lock 100 receives the encrypted base digital ENSD and the encrypted unlock code ENFD, it will receive the encrypted or unencrypted controller identification code ENTX or TXID at the same time. When the electronic lock 100 recognizes which signal from the unlocking controller 200, it obtains the corresponding unlocked count of the controller identification code TXID, as a basis for judging whether the count meets the unlocking conditions, and The newly received count is stored in a counter in a position corresponding to the unlocking controller number. In this embodiment, depending on the memory size, up to 100 sets of counts can be stored.

又,在此一變形例之一進階實施例中,電子鎖100在取得TXID時,除了會據以找出對應的計數之外,也會找出如前面所述開鎖控制器200之變形例中的新初始金鑰NK0,再以此新初始金鑰NK0對所收到的加密基數碼ENSD進行解密,以得出基數值X。在此例中,電子鎖100會儲存有一跟開鎖控制器200中的金鑰庫一樣的金鑰庫,並使金鑰庫中的各金鑰有各自對應的開鎖控制器識別碼TXID。當電子鎖100收到加密控制器識別碼ENTX時,即先以共用之初始金鑰K0,解出開鎖控制器200被選定的序號,例如TX2,再以TX2所對應的金鑰,例如K2,作為新初始金鑰NK0,用以解密出基數X。解密出基數X後的其他後續解密機制,即與前面實施例所述者相同,而不再複述。In addition, in an advanced embodiment of this modification, when the electronic lock 100 obtains the TXID, in addition to finding the corresponding count, it will also find a modification of the unlocking controller 200 as described above. The new initial key NK0 in the. Is used to decrypt the received encrypted base digital ENSD with this new initial key NK0 to obtain the base value X. In this example, the electronic lock 100 stores a key library that is the same as the key library in the unlocking controller 200, and each key in the key library has a corresponding unlocking controller identification code TXID. When the electronic lock 100 receives the encryption controller identification code ENTX, it first uses the shared initial key K0 to unlock the selected serial number of the unlocking controller 200, such as TX2, and then uses the key corresponding to TX2, such as K2. As a new initial key NK0, it is used to decrypt the base X. The other subsequent decryption mechanisms after the base X is decrypted are the same as those described in the previous embodiment and will not be described again.

又,在此第二實施例中,該計時模組開始計時的時間,可以是在解密模組138一收到解鎖信號時即開始。Moreover, in this second embodiment, the timing for the timing module to start timing may be started as soon as the decryption module 138 receives the unlock signal.

又,在一較佳實施例中,電子鎖100之處理單元130還具有一防衛機制(未圖示)。亦即,當具有相同基數X的訊號在一特定時間內被連續收到一定次數以上,或是代表某序號之基數X連續錯誤一定次數以上時,例如30次以上,電子鎖100將休眠1小時,以防盜賊掃頻盜開。而且,可以進一步設定成一旦合法的開鎖控制器200要開鎖時,必須由開鎖控制器200先發出一身份確認信號,作喚醒動作以解除休眠,才不用受限於休眠1小時不能開鎖,當然此時之身份確認信號也最好是以例如一雙方約定好的特定金鑰加密而成。Moreover, in a preferred embodiment, the processing unit 130 of the electronic lock 100 also has a defense mechanism (not shown). That is, when signals with the same base X are received consecutively more than a certain number of times within a specific time, or the base X representing a certain serial number is continuously wrong more than a certain number of times, for example, more than 30 times, the electronic lock 100 will sleep for 1 hour. In order to prevent thieves from scanning frequently. Furthermore, it can be further set that once the legal unlock controller 200 is to be unlocked, the unlock controller 200 must first send an identity confirmation signal to perform a wake-up action to release the hibernation, so that it cannot be unlocked without being limited to 1 hour of sleep. It is also preferable that the identity confirmation signal is encrypted with a specific key agreed upon by both parties, for example.

又,在開鎖控制器200要發送上述加密基數碼ENSD與加密解鎖碼ENFD之前,也可以如上述電子鎖100之解碼方式般先作查核,以確認該兩碼ENSD與ENFD確實與所設定的解鎖碼相對應。In addition, before the unlocking controller 200 sends the encryption-based digital ENSD and the encryption unlocking code ENFD, it may also check as the decoding method of the electronic lock 100 to confirm that the two codes ENSD and ENFD are indeed unlocked with the setting Code.

又,以上之實施例是以設置二層金鑰的情形來說明加密方法。在一變形實施例中,加密方式也可以不用如上面所述般設置二層的金鑰,而是一層金鑰即可。亦即,在金鑰庫中只儲存一金鑰,並以此一金鑰對基數及解鎖識別碼IP進行加密即可。尤其是,當開鎖控制器識別碼TXID本身即是一把金鑰形式時,並由使用者自行設定或隨機設定,且與電子鎖的配對狀況單純時,更可直接利用該識別碼TXID對基數X及解鎖識別碼IP分別或一起進行加解密動作,而成一簡單的加密方法。In the above embodiment, the encryption method is described in the case where a two-layer key is set. In a variant embodiment, the encryption method may not use a two-layer key as described above, but a one-layer key. That is, only one key is stored in the key library, and the cardinality and the unlocking identification code IP can be encrypted with the one key. In particular, when the unlocking controller identification code TXID itself is in the form of a key, and is set by the user or randomly, and the pairing status with the electronic lock is simple, the identification code TXID can be directly used to base the number X and the unlocking identification code IP perform encryption and decryption operations separately or together to form a simple encryption method.

根據上述加密方法,在發送一組解鎖碼UC時,可以有多種組合。例如,可以如第一實施例所述只發送解鎖碼UC之定碼或滾碼;也可以發送部分解鎖碼UC之定碼,加上加密基數碼ENSD與加密解鎖碼ENFD;或是,只發送加密基數碼ENSD與加密解鎖碼ENFD;或是,基數與解鎖碼一起加密的加密解鎖碼。因此,較佳地,在各碼之前有一個碼種識別元,以利電子鎖接收單元可以識別所收到的信號含有多少碼,再據以進行不同的解碼步驟。當同時發送部分解鎖碼UC之定碼,加上加密基數碼ENSD與加密解鎖碼ENFD時,有一好處是可以在對加密解鎖碼ENFD解密出解鎖碼UC後,與同時傳送的定碼進行比較,以進一步避免盜開者因雜訊滲入加密信號,而導致解碼成功之錯誤情形。According to the above encryption method, when sending a set of unlocking codes UC, there can be multiple combinations. For example, as described in the first embodiment, only the fixed code or rolling code of the unlocking code UC can be sent; a fixed code of the partial unlocking code UC can be sent, plus the encryption base digital ENSD and the encrypted unlocking code ENFD; or, only The encryption base digital ENSD and the encryption unlock code ENFD; or, the encryption base unlock code which is encrypted together with the unlock code. Therefore, preferably, there is a code type identification element before each code, so that the electronic lock receiving unit can identify how many codes the received signal contains, and then perform different decoding steps accordingly. When sending the fixed code of the partial unlocking code UC together with the encryption base digital ENSD and the encrypted unlocking code ENFD, one advantage is that after decrypting the encrypted unlocking code ENFD to unlock the unlocking code UC, it can be compared with the fixed code transmitted at the same time. In order to further prevent the pirates from infiltrating the encrypted signal due to noise, leading to the error situation of successful decoding.

又,在上述實施例中,使用動態基數X於加密解鎖碼中的好處是因為該基數X不管是計數或亂數,都可以使每次發送的加密解鎖碼有所不同,而防止解鎖碼被側錄而用以重複解鎖。亦即,計數會隨著發送信號的次數而變,除了增加被解碼的困難度,且可以發送給解密端進行比對,以正向限定差距的規範方式,防止解鎖信號被側錄後重複用以開鎖。若此基數是一亂數時,一樣可以增加被解碼的困難度,並可在解密端增加一基數重複禁止解鎖的負面表列規範方式,防止解鎖信號被側錄後重複用以開鎖。在一利用該基數產生一動態加密金鑰KE,並以該動態加密金鑰KE對解鎖碼UC進行加密,再送出加密解鎖碼ENFD的例子中,將更加難以被盜賊解碼。In the above embodiment, the advantage of using the dynamic base X in the encryption and unlocking code is that whether the base X is a count or a random number, the encryption and unlocking codes sent each time can be different, and the unlocking code is prevented from being Recorded for repeated unlocking. That is, the count will change with the number of times the signal is sent. In addition to increasing the difficulty of being decoded, it can be sent to the decryption side for comparison. In a standardized way that limits the gap forward, it prevents the unlocking signal from being used repeatedly after it is recorded. To unlock. If the cardinality is a random number, it can also increase the difficulty of being decoded, and a negative cardinality can be added to the decryption end to repeatedly prohibit the unlocking of the regular list to prevent unlocking signals from being repeatedly recorded for unlocking. In an example in which a dynamic encryption key KE is generated using the base number, and the unlocking code UC is encrypted with the dynamic encryption key KE, and then the encrypted unlocking code ENFD is sent, it will be more difficult for a thief to decode.

綜合上述,本發明藉由使用二組使用者自建的識別碼,使得該功能擴展非常大,而可以提供一種由使用者自主建構解鎖密碼之隱藏式多功能遙控電子鎖,並提供一使用者可自主建構安全等級的遙控電子鎖系統,再經過安全的加密傳送解鎖碼的方法,將可以使整個電子鎖的保安性更強,防止解鎖碼被盜取,而獲得一種可以達成上述各種目的的電子鎖系統。To sum up, the present invention uses two sets of user-built identification codes to make the function expand very much, and can provide a hidden multi-function remote control electronic lock that the user can independently construct the unlock password, and provide a user A remote-control electronic lock system with a security level can be independently constructed, and then the method of transmitting the unlock code through secure encryption can make the entire electronic lock more secure and prevent the unlock code from being stolen. Electronic lock system.

以上所述僅為本發明的實施例,並非因此限製本發明的專利範圍,凡是利用本發明說明書及附圖內容所作的等效結構或等效流程變換,或直接或間接運用在其他相關的技術領域,均同理包括在本發明的專利保護範圍內。The above description is only an embodiment of the present invention, and thus does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description and drawings of the present invention, or directly or indirectly applied to other related technologies The same applies to the fields of patent protection of the present invention.

100‧‧‧電子鎖100‧‧‧Electronic lock

110‧‧‧無線接收單元110‧‧‧Wireless receiving unit

120‧‧‧儲存單元120‧‧‧Storage unit

130‧‧‧處理單元130‧‧‧processing unit

132‧‧‧識別模組132‧‧‧Identification Module

134‧‧‧計時模組134‧‧‧ timing module

135‧‧‧安全等級設定模組135‧‧‧Security Level Setting Module

136‧‧‧作動信號產生模組136‧‧‧Activation signal generation module

138‧‧‧解密模組138‧‧‧Decryption Module

139‧‧‧基數比對模組139‧‧‧radix comparison module

140‧‧‧開鎖致動器140‧‧‧ unlock actuator

150‧‧‧設定輸入埠150‧‧‧ set input port

160‧‧‧位置感應器160‧‧‧Position sensor

170‧‧‧電力警示單元170‧‧‧ Electricity warning unit

200‧‧‧開鎖控制器200‧‧‧ unlocking controller

210‧‧‧無線發射單元210‧‧‧Wireless transmitting unit

220‧‧‧儲存單元220‧‧‧Storage unit

230‧‧‧控制單元230‧‧‧control unit

232‧‧‧電力更換確認模組232‧‧‧Power Replacement Confirmation Module

234‧‧‧基數產生模組234‧‧‧ Cardinality generation module

236‧‧‧加密模組236‧‧‧Encryption Module

238‧‧‧控制時間限定模組238‧‧‧Control time limited module

240‧‧‧操作介面240‧‧‧ operation interface

圖1是依照本發明第一實施例而成之電子鎖的元件示意圖。 圖2是依照本發明第一實施例而成之開鎖控制器的元件示意圖。 圖3是依照本發明第二實施例而成之電子鎖的元件示意圖。 圖4是依照本發明第二實施例而成的加密方法流程圖。 圖5是依照本發明第二實施例而成之開鎖控制器的元件示意圖。 圖6是依照本發明第二實施例而成的解密方法流程圖。FIG. 1 is a schematic diagram of components of an electronic lock according to a first embodiment of the present invention. FIG. 2 is a schematic diagram of components of an unlocking controller according to the first embodiment of the present invention. 3 is a schematic diagram of components of an electronic lock according to a second embodiment of the present invention. FIG. 4 is a flowchart of an encryption method according to a second embodiment of the present invention. 5 is a schematic diagram of components of an unlocking controller according to a second embodiment of the present invention. FIG. 6 is a flowchart of a decryption method according to a second embodiment of the present invention.

Claims (22)

一種電子鎖系統,包含有一電子鎖,其具有: 一無線接收單元,用以無線接收解鎖信號; 一儲存單元,可供儲存至少二組解鎖識別碼; 一處理單元,包含有: 一識別模組,用以接收該解鎖信號,並可比對該等至少二組解鎖識別碼;以及, 一作動信號產生模組,用以在比對出該等至少二組相對應識別碼時,送出一作動信號給開鎖致動器; 一開鎖致動器,用以在收到該作動信號時,進行開鎖;以及, 一設定輸入埠,用以供使用者自行可變地設定該等至少二組解鎖識別碼,且該等至少二組解鎖識別碼之至少其中之一係一由使用者操作產生之亂數。An electronic lock system includes an electronic lock having: a wireless receiving unit for wirelessly receiving an unlocking signal; a storage unit for storing at least two sets of unlocking identification codes; a processing unit including: an identification module For receiving the unlocking signal and comparing the at least two sets of unlocking identification codes; and, an actuating signal generating module for sending an actuating signal when comparing the at least two sets of corresponding identification codes. An unlocking actuator; an unlocking actuator for unlocking when the actuation signal is received; and a setting input port for a user to variably set the at least two sets of unlocking identification codes And at least one of the at least two sets of unlocking identification codes is a random number generated by a user operation. 如請求項1之電子鎖系統,還包含一計時模組,用以在收到該解鎖信號後開始計時,且該作動信號產生模組在一特定時間內比對出該至少二組相對應識別碼時,才會送出該作動信號。For example, the electronic lock system of claim 1 further includes a timing module to start timing after receiving the unlock signal, and the actuation signal generating module compares the at least two corresponding identifications within a specific time. When the code is sent, the action signal will be sent out. 如請求項2之電子鎖系統,其中該處理單元還包含一安全等級設定模組,用以供變更該特定時間之長短或該識別模組要識別的解鎖識別碼組數。For example, the electronic lock system of claim 2, wherein the processing unit further includes a security level setting module for changing the length of the specific time or the number of unlocking identification code groups to be recognized by the identification module. 如請求項1之電子鎖系統,其中至少一組解鎖識別碼為一開鎖控制器識別碼。 The electronic lock system of claim 1, wherein at least one unlocking identification code is an unlocking controller identification code. 如請求項1之電子鎖系統,其中該等至少二解鎖識別碼其中之一為一電力更換確認碼,且其中,該電子鎖還包含一電力警示單元,用以在電力剩下一特定值時,進入休眠模式而停止接收解鎖碼信號,且在進入該休眠模式之下,只有接收到該電力更換確認碼時,才會停止休眠。 For example, the electronic lock system of claim 1, wherein one of the at least two unlocking identification codes is a power replacement confirmation code, and wherein the electronic lock further includes a power warning unit for when a specific value of power remains , Enter the sleep mode and stop receiving the unlock code signal, and under the sleep mode, the sleep will only stop when the power replacement confirmation code is received. 如請求項1之電子鎖系統,其中,該儲存單元儲存有一金鑰庫,金鑰庫包含有至少一金鑰;該無線接收單元所接收之解鎖信號含有一利用一基數與該金鑰兩者至少其中之一對一組解鎖碼加密而成的加密解鎖碼;且該處理單元還包含一解密模組,用以從所收該加密解鎖碼中,利用該金鑰,解出該基數及該組解鎖碼二者至少其中之一,供與其中一組解鎖識別碼進行比對。For example, the electronic lock system of claim 1, wherein the storage unit stores a key store, the key store contains at least one key; the unlock signal received by the wireless receiving unit includes a use of both a base and the key At least one of them is an encrypted unlock code obtained by encrypting a group of unlock codes; and the processing unit further includes a decryption module, which is used to extract the base number and the decryption code from the received encrypted unlock code using the key. At least one of a group unlocking code for comparison with one group of unlocking identification codes. 如請求項6之電子鎖系統,其中,該解密模組更利用該至少一金鑰與該基數兩者至少其中之一,透過一加密邏輯,產出一動態加密金鑰,再以該動態加密金鑰,解出該一組解鎖碼。For example, the electronic lock system of claim 6, wherein the decryption module further uses at least one of the at least one key and the cardinality to generate a dynamic encryption key through an encryption logic, and then uses the dynamic encryption Key to unlock the set of unlock codes. 如請求項6之電子鎖系統,其中,該基數為一計數,且該處理單元還包含一基數比對模組,用以在解密出該基數後,將該基數與前一次解鎖之基數作比較,當其差為一特定值之範圍內時,才能達成解鎖。For example, the electronic lock system of claim 6, wherein the cardinality is a count, and the processing unit further includes a cardinality comparison module for comparing the cardinality with the cardinality previously unlocked after decrypting the cardinality. , When the difference is within a specific range, unlocking can be achieved. 如請求項8之電子鎖系統,其中,該無線接收單元所接收之解鎖信號包含一對應於各別開鎖控制器的開鎖控制器識別碼,且該電子鎖可供儲存一計數庫,其記錄有各別對應於多數開鎖控制器之多數計數,該基數比對模組就所解密出之該基數,與所收控制器識別碼所對應的既存計數,進行比較。For example, the electronic lock system of claim 8, wherein the unlocking signal received by the wireless receiving unit includes an unlocking controller identification code corresponding to each unlocking controller, and the electronic lock can be used to store a counting library, which is recorded with Each one corresponds to the majority count of the majority of unlocking controllers. The base number is compared with the base number decrypted by the module and compared with the existing count corresponding to the received controller identification code. 如請求項6或9之電子鎖系統,其中,該金鑰庫儲存有對應於不同開鎖控制器識別碼之金鑰,並先以一金鑰庫中之一初始金鑰,對加密之開鎖控制器識別碼進行解密,而取得該開鎖控制器識別碼之後,再以該開鎖控制器識別碼所對應的金鑰,作為新初始金鑰,對該加密解鎖碼進行後續解密。For example, the electronic lock system of claim 6 or 9, wherein the key library stores keys corresponding to different unlocking controller identification codes, and first uses an initial key in a key library to control the unlocking of the encryption. The device identification code is decrypted, and after obtaining the unlocking controller identification code, the key corresponding to the unlocking controller identification code is used as a new initial key to perform subsequent decryption of the encrypted unlocking code. 如請求項6之電子鎖系統,其中該處理單元還包含一防衛機制,用以在具有相同基數的解鎖訊號被連續收到一定次數以上或基數連續錯誤一定次數以上時,使該電子鎖進入休眠狀態。For example, the electronic lock system of claim 6, wherein the processing unit further includes a defense mechanism for putting the electronic lock to sleep when an unlocking signal having the same base number is continuously received more than a certain number of times or the base number is continuously wrong for a certain number of times. status. 如請求項1之電子鎖系統,還包含至少一開鎖控制器,其具有: 一儲存單元,儲存有該至少二組解鎖識別碼之至少其中之一;以及, 一射控單元,用以在該特定時間內發射一含有該至少二組解鎖識別碼之至少其中之一的解鎖信號給該電子鎖。 For example, the electronic lock system of claim 1 further includes at least one unlocking controller having: a storage unit storing at least one of the at least two sets of unlocking identification codes; and a shooting control unit for storing the An unlocking signal containing at least one of the at least two sets of unlocking identification codes is transmitted to the electronic lock within a certain time. 如請求項12之電子鎖系統,其中,該開鎖控制器還具有一電力更換確認模組,用以在被動作時,使該開鎖控制器發出一電力更換確認碼。 For example, the electronic lock system of claim 12, wherein the unlocking controller also has a power replacement confirmation module for causing the unlocking controller to issue a power replacement confirmation code when it is actuated. 如請求項12之電子鎖系統,其中,該開鎖控制器之儲存單元儲存有一金鑰庫,該金鑰庫包含有至少一金鑰;該控制單元還包含一基數產生模組與一加密模組;該基數產生模組用以產生一基數;該加密模組用以根據該基數與該金鑰庫中之一金鑰兩者至少其中之一,產出一個對一組解鎖碼進行加密而成的一組加密解鎖碼,供該無線發射單元發射出內含該組加密解鎖碼的解鎖信號。 For example, the electronic lock system of claim 12, wherein the storage unit of the unlocking controller stores a key library containing at least one key; the control unit further includes a base generation module and an encryption module ; The cardinality generation module is used to generate a cardinality; the encryption module is used to generate a set of unlock codes based on at least one of the cardinality and a key in the key library A set of encrypted unlock codes for the wireless transmitting unit to transmit an unlock signal containing the set of encrypted unlock codes. 如請求項14之電子鎖系統,其中,該加密模組還包含用以依據該金鑰庫中之一金鑰與該基數兩者至少其中之一,產出至少一動態加密金鑰,再以該動態加密金鑰,對該組解鎖碼進行加密,而產出該加密解鎖碼。For example, the electronic lock system of claim 14, wherein the encryption module further comprises a method for generating at least one dynamic encryption key according to at least one of a key in the key library and the cardinality, and then The dynamic encryption key encrypts the group of unlocking codes, and generates the encrypted unlocking code. 如請求項14之電子鎖系統,其中,該開鎖控制器被設定有一開鎖控制器識別碼,且被匹配有一在該金鑰庫其中之一的金鑰;且其中該加密模組以一不同於該被匹配金鑰的初始金鑰,對該開鎖控制器識別碼加密,而產生一加密控制器識別碼供發送,並以該開鎖控制器識別碼所匹配的金鑰,作為該用以對解鎖碼進行加密的金鑰。For example, the electronic lock system of claim 14, wherein the unlocking controller is set with an unlocking controller identification code and is matched with a key in one of the key stores; and wherein the encryption module is different from The initial key of the matched key encrypts the unlocking controller identification code, generates an encrypted controller identification code for transmission, and uses the key matched by the unlocking controller identification code as the unlocking controller identification code. Key for encryption. 如請求項12至16其中任一項之電子鎖系統,包含一母開鎖控制器與至少一子開鎖控制器,該母開鎖控制器之儲存單元儲存有多數開鎖控制器識別碼;該子開鎖控制器儲存有該等多數開鎖控制器識別碼之至少其中之一,且不能再將該至少一開鎖控制器識別碼分用給其他子開鎖控制器。For example, the electronic lock system of any one of claims 12 to 16 includes a female unlocking controller and at least one child unlocking controller, and the storage unit of the female unlocking controller stores a plurality of unlocking controller identification codes; the child unlocking control The device stores at least one of the plurality of unlocking controller identification codes, and can no longer distribute the at least one unlocking controller identification code to other child unlocking controllers. 如請求項12項之電子鎖系統,其中該開鎖控制器還包含有一控制時間限定模組,用以限定該開鎖控制器只能在一規定時間內使用。For example, the electronic lock system according to item 12, wherein the unlocking controller further includes a control time limiting module for limiting the unlocking controller to be used only within a specified time. 一種密碼加密方法,該密碼儲存在一儲存單元中,且該儲存單元還儲存有一金鑰庫,該金鑰庫含有至少一金鑰;該方法包含: 因應每次加密要求,取得一動態基數; 取出該至少一金鑰對該基數進行加密,而產生一加密基數碼供傳送;以及 根據該至少一金鑰及該基數兩者至少其中之一,產生一動態金鑰,再以該動態金鑰對該密碼進行加密,而產出一加密密碼供傳送。A password encryption method, wherein the password is stored in a storage unit, and the storage unit further stores a key store, the key store contains at least one key; the method includes: obtaining a dynamic base in response to each encryption request; Take out the at least one key to encrypt the base number, and generate an encrypted base number for transmission; and generate a dynamic key based on at least one of the at least one key and the base number, and then use the dynamic key The password is encrypted, and an encrypted password is generated for transmission. 如請求項19之方法,其中該金鑰庫之其中之一被設為一初始金鑰,該方法還包含: 利用該初始金鑰,對一由使用者選定之對應於金鑰庫中其他金鑰的序號進行加密,而產出一加密序號碼供傳送; 且其中,對該基數進行加密之步驟,係利用該序號所對應之金鑰進行加密;以及 該動態金鑰係利用該對應金鑰與該基數兩者至少其中之一而產生。The method of claim 19, wherein one of the keystores is set as an initial key, and the method further comprises: using the initial key, to select a corresponding one of the other keys in the keystore selected by the user. The serial number of the key is encrypted, and an encrypted serial number is generated for transmission; and wherein the step of encrypting the base is encrypted by using the key corresponding to the serial number; and the dynamic key is using the corresponding key And at least one of the cardinality. 一種密碼解密方法,應用在一裝置中,該裝置具有一儲存單元供儲存有一金鑰庫,且該金鑰庫含有至少一金鑰;該方法包含: 接收一加密一動態基數而成的加密動態基數碼及一加密一密碼而成的加密密碼; 取出該至少一金鑰,對該加密動態基數碼進行解密,而得出該基數; 利用該基數與該至少一金鑰兩者至少其中之一,解密出一動態金鑰;以及 利用該動態金鑰,對該加密密碼進行解密,而得出該密碼。A password decryption method is applied in a device. The device has a storage unit for storing a key store, and the key store contains at least one key. The method includes: receiving an encrypted dynamic encrypted by a dynamic base. A base number and an encrypted password obtained by encrypting a password; taking out the at least one key and decrypting the encrypted dynamic base number to obtain the base number; using at least one of the base number and the at least one key , Decrypting a dynamic key; and using the dynamic key to decrypt the encrypted password to obtain the password. 如請求項21之方法,其中該金鑰庫之其中之一被設為一初始金鑰;且該方法還包含: 接收一對一序號加密而成的加密序號碼;以及 取出該初始金鑰,解密出該序號; 且其中,對該加密基數碼進行解密之步驟,係利用該序號在該金鑰庫中所對應的金鑰進行解密;以及 該動態金鑰係利用該對應金鑰與該基數兩者至少其中之一而產生。The method of claim 21, wherein one of the key libraries is set as an initial key; and the method further comprises: receiving an encrypted serial number encrypted by a one-to-one serial number; and taking out the initial key, The serial number is decrypted; and the step of decrypting the encrypted base number is to use the key corresponding to the serial number in the key library to decrypt; and the dynamic key system uses the corresponding key and the base number At least one of the two.
TW107104852A 2018-02-12 2018-02-12 Remote control electronic lock system and encrypting/decrypting method TWI638081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107104852A TWI638081B (en) 2018-02-12 2018-02-12 Remote control electronic lock system and encrypting/decrypting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107104852A TWI638081B (en) 2018-02-12 2018-02-12 Remote control electronic lock system and encrypting/decrypting method

Publications (2)

Publication Number Publication Date
TWI638081B TWI638081B (en) 2018-10-11
TW201934861A true TW201934861A (en) 2019-09-01

Family

ID=64797532

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107104852A TWI638081B (en) 2018-02-12 2018-02-12 Remote control electronic lock system and encrypting/decrypting method

Country Status (1)

Country Link
TW (1) TWI638081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI697226B (en) * 2018-12-25 2020-06-21 台灣福興工業股份有限公司 Electric lock and control method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW451025B (en) * 2000-03-29 2001-08-21 Taiwan Jantek Electronics Inc Electronic password lock with operation mode of random number input and method thereof
TW201329325A (en) * 2012-01-06 2013-07-16 Askey Technology Jiangsu Ltd Device and method for controlling electric lock
TW201636489A (en) * 2015-04-07 2016-10-16 速碼波科技股份有限公司 Electronic lock and unlocking verification mothod of the electronic lock
TWI573921B (en) * 2015-07-06 2017-03-11 陳啟揚 Method And System Of Unlocking Digital Lock
TWM510956U (en) * 2015-07-06 2015-10-21 Qi-Yang Chen Unlocking system of electronic lock
TWM528352U (en) * 2016-05-03 2016-09-11 生茂系統開發有限公司 Electric lock having dynamic keyboard and the system using the same

Also Published As

Publication number Publication date
TWI638081B (en) 2018-10-11

Similar Documents

Publication Publication Date Title
CN110163995B (en) Remote control electronic lock system
US10574655B2 (en) Networked access control system
US9953145B2 (en) Configuration method, configuration device, computer program product and control system
CN105279832B (en) Intelligent door lock system and its control method
CA2527836C (en) An in-circuit security system and methods for controlling access to and use of sensitive data
CN100387798C (en) An electronic key and electronic lock device and its realization method
CN110443915B (en) Door lock control method, control device, door lock and storage medium
HK1045864A1 (en) Key and lock device
WO2013074300A1 (en) Method of distribution stand-alone locks
CN112750242B (en) Dynamic coded lock unlocking method and system and dynamic coded lock circuit
WO2019204954A1 (en) Smart lock system
CN109243017A (en) A kind of bluetooth method for unlocking, device and computer readable storage medium
MXPA05002038A (en) Secure electric anti-theft device, anti-theft system comprising one such device and method of matching electric devices.
CN108288315A (en) A kind of smart lock control system, open method and storage medium
CN207909222U (en) Smart bluetooth is locked and smart bluetooth lock system
JP6174796B2 (en) Security system, management device, permission device, terminal device, security method, and program
TWI638081B (en) Remote control electronic lock system and encrypting/decrypting method
JP2013209821A (en) Electric lock system
US20160300416A1 (en) Electronic Lock and Verification Method for Unlocking the Same
CN107424242B (en) Central control access control system
CN106761014B (en) A kind of intelligence electromechanical double-control electronic lock
HK40012628A (en) Remote control electronic lock system and encryption and decryption methods thereof
TW201623762A (en) Multiple regulation electronic lock control system and method of wirelessly transmitting keys
TWI542770B (en) NFC lock system and lock device
TW201320702A (en) Code hopping based system with increase security

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees