TWI638081B - 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
TWI638081B
TWI638081B TW107104852A TW107104852A TWI638081B TW I638081 B TWI638081 B TW I638081B TW 107104852 A TW107104852 A TW 107104852A TW 107104852 A TW107104852 A TW 107104852A TW I638081 B TWI638081 B TW I638081B
Authority
TW
Taiwan
Prior art keywords
unlocking
key
electronic lock
controller
unlock
Prior art date
Application number
TW107104852A
Other languages
Chinese (zh)
Other versions
TW201934861A (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

本發明提供一種電子鎖系統,包含一電子鎖,其具有:一無線接收單元,用以無線接收解鎖信號;一儲存單元,用以儲存解鎖識別碼;一處理單元,包含一識別模組、一計時模組、及一作動信號產生模組;一開鎖致動器;以及,一設定輸入埠。本發明並提供一種使用者可自行設定的加密解密方法。藉由本發明之電子鎖系統與密碼加解密方法,可獲得一種由使用者自主建構解鎖密碼之隱藏式多功能遙控電子鎖,能提供一種安全且適於多種用途與應用的電子鎖,並可自己設定不同等級安全性,不受廠商限定,且控制器遺失可自行重設,也不會有洩漏與被駭的問題。The present invention provides an electronic lock system including an electronic lock having a wireless receiving unit for wirelessly receiving an unlock signal, a storage unit for storing an unlocking identification code, and a processing unit including an identification module and a a timing module, and an actuation signal generating module; an unlocking actuator; and a setting input port. The invention also provides an encryption and decryption method that can be set by a user. By the electronic lock system and the password encryption and decryption method of the invention, a hidden multi-function remote electronic lock can be obtained by the user to construct an unlock password, which can provide an electronic lock which is safe and suitable for various purposes and applications, and can be used by itself. Set different levels of security, not limited by the manufacturer, and the controller can be reset by itself, and there will be no leakage or beating.

Description

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

本發明係有關於一種電子鎖系統,尤其是有關於一種高安全性且使用者可自建系統的遙控電子鎖系統及其加解密方法。The present invention relates to an electronic lock system, and more particularly to a remote control electronic lock system with high security and user self-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 the sake of security, the password unlocking method of the electronic lock is also more diverse and complicated.

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

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

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

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

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

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

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

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

本發明又進一步目的在於提供一種可以防止盜賊側錄,並可以同時供多把開鎖控制器進行開鎖的電子鎖系統,並提供一種解鎖碼加解密的方法Still another object of the present invention is to provide an electronic lock system capable of preventing thieves from recording and simultaneously unlocking multiple unlocking controllers, and providing an unlocking code encryption and decryption method

為了達成上述目的,本發明提供一種電子鎖系統,其包含有一電子鎖,且該電子鎖具有: 一無線接收單元,用以無線接收解鎖信號; 一儲存單元,可供儲存至少二組解鎖識別碼; 一處理單元,包含有: 一識別模組,用以接收該解鎖信號,並可比對該等至少二組解鎖識別碼;以及, 一作動信號產生模組,用以在比對出該等至少二組相對應識別碼時,送出一作動信號給開鎖致動器; 一開鎖致動器,用以在收到該作動信號時,進行開鎖;以及, 一設定輸入埠,用以供使用者自行可變地設定該等至少二組解鎖識別碼,且該等至少二組解鎖識別碼之至少其中之一係一由使用者操作產生之亂數。In order 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 unlock signal; and a storage unit for storing at least two sets of unlocking identification codes a processing unit, comprising: 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 comparing the at least When two sets of corresponding identification codes are sent, an actuation signal is sent to the unlocking actuator; an unlocking actuator is used for unlocking when the actuation signal is received; and a setting input is provided for the user to 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 unlock controller is lost, the user can re-program the unlocking identifier of the electronic lock and enter the new electronic lock and unlock controller via the setting input. Unlock the identification code setting without replacing the entire set of electronic locks, just add the unlock controller, and don't worry about the lost unlocking controller being unlocked.

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

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

又,為達成上述目的,本發明提供一種電子鎖系統,其中一組解鎖識別碼為特定開鎖控制器識別碼,用以識別至少一開鎖控制器。藉此,除增加安全性外,並可記錄特定可開鎖使用者。Moreover, in order to achieve the above object, the present invention provides an electronic lock system in which a set of unlocking identification codes is a specific unlocking controller identification code for identifying at least one unlocking controller. Thereby, in addition to increasing safety, a specific unlockable user 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 the power has a certain value remaining, the sleep mode is entered and the unlock signal is stopped, and when the sleep mode is entered, the sleep is stopped only when the power exchange confirmation code is received.

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

又,為達成上述目的,本發明提供一種電子鎖系統,其中該處理單元還包含一基數比對模組,且該基數為一計數,每解密出該基數即儲存該基數,並將該基數與前一次所儲基數作比較,當其差為一特定值之範圍內時,才能達成解密。該電子鎖並可供儲存一本記錄有各別對應於多數開鎖控制器之多數計數的計數庫,該無線接收單元所接收之解鎖信號包含有一對應於各別開鎖控制器的控制器識別碼,且該基數比對模組就所解密出之該基數,與所收控制器識別碼所對應的既存計數,進行比較。藉此,將可以防止加密解鎖碼被側錄,並可識別不同的開鎖控制器。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 base is a count, and the base is stored every time the base is decrypted, and the base is The previous stored base number is compared, and the decryption can be achieved when the difference is within a certain range. The electronic lock is further configured to store a counting library recorded with a plurality of 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 base number decrypted by the cardinality comparison module is compared with the existing count corresponding to the received controller identification code. Thereby, it is possible to prevent the encrypted unlock code from being recorded side by side and to recognize different unlocking controllers.

又,為達成上述目的,本發明所揭電子鎖系統還包含一開鎖控制器,其具有一儲存單元,用以儲存該至少二組解鎖識別碼之至少其中之一;以及,一射控單元,用以在該特定時間內發射一含有該至少二組解鎖識別碼之至少其中之一的解鎖信號給該電子鎖。藉此,可以由一人單獨以多組解鎖碼進行開鎖,也可以將二解鎖碼分別授權給二開鎖控制器發射,而在該二開鎖控制器同時動作時才能開鎖。In addition, in order to achieve the above object, the electronic lock system of 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 an emission control unit, And transmitting an unlocking signal containing at least one of the at least two sets of unlocking identification codes to the electronic lock during the specific time. Thereby, the unlocking code can be unlocked by one person alone or the two unlocking codes can be respectively authorized to be transmitted by the two unlocking controllers, and can be unlocked when the two unlocking controllers are simultaneously operated.

又,該開鎖控制器具有一電力更換確認模組,用以在被動作時,發出一電力更換確認碼。藉此,若使用者在電力不足時仍執意不更換電池,則每次解鎖時均需此繁複動作直到完全沒電。Moreover, 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, the complicated operation is required every time the unlocking is performed until the power is completely lost.

又,為達成上述目的,本發明另提供一種密碼加解密方法,該密碼儲存在一儲存單元中,且該儲存單元還儲存有一金鑰庫,該金鑰庫含有至少一金鑰;該方法包含:因應每次加密要求,取得一動態基數;取出該至少一金鑰對該基數進行加密,而產生一加密基數碼供傳送;以及,根據該至少一金鑰及該基數兩者至少其中之一,產生一動態金鑰,再以該動態金鑰對該密碼進行加密,而產出一加密密碼供傳送。密碼解密方法應用在一裝置中,該裝置具有一儲存單元供儲存有一金鑰庫,且該金鑰庫含有至少一金鑰;該方法包含:接收一加密一動態基數而成的加密動態基數碼及一加密一密碼而成的加密密碼;取出該至少一金鑰,對該加密動態基數碼進行解密,而得出該基數;利用該基數與該至少一金鑰兩者至少其中之一,解密出一動態金鑰;以及,利用該動態金鑰,對該加密密碼進行解密,而得出該密碼。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 database, the key database contains at least one key; the method includes Retrieving a dynamic base for each encryption request; extracting the at least one key to encrypt the base, and generating an encrypted base digital for transmission; and, according to at least one of the at least one key and the base Generating a dynamic key, encrypting the password with the dynamic key, and generating an encrypted password for transmission. The password decryption method is applied in a device, the device has a storage unit for storing a key database, and the key database contains at least one key; the method comprises: receiving an encrypted dynamic base digital number obtained by encrypting a dynamic base number And encrypting and encrypting a password; extracting the at least one key, decrypting the encrypted dynamic base digital to obtain the base; and decrypting at least one of the base and the at least one key Generating a dynamic key; and, using the dynamic key, decrypting the encrypted password to obtain the password.

綜合上述,藉由上述本發明各種觀點,由於鎖及天線均可裝置在門內側,甚至在門板內,且外部開鎖有效距離10m以上,內部開鎖有效距離50m以上,因而可以提供一種由門外看不到任何鎖具位置配件等而避免被破壞,進而可以達成上述各種目的的電子鎖系統。尤其,藉由使用者可以自己設定極具安全性的解鎖碼,並可以自己設定不同等級的安全性,不受製造廠商出廠時之指定,將不會有洩漏密碼資料之問題,也不會有必須強記解鎖碼而有忘記或洩漏密碼之問題。而且,本發明所揭電子鎖不用透過無線網路架構即可遙控開鎖,不會有網路駭客的安全性問題。而且,可將其中一組識別碼設定為控制器碼,將可儲存不同人員開啟記錄,並可作代位授權開鎖管理。因此,本發明所揭電子鎖可以提供一種由使用者自主建構解鎖密碼之隱藏式多功能電子鎖,且能以一簡單架構,提供安全且適於多種用途與應用的電子鎖。In summary, according to the above various aspects of the present invention, since both the lock and the antenna can be installed inside the door, even in the door panel, and the external unlocking effective distance is more than 10 m, the internal unlocking effective distance is 50 m or more, so that it can be provided that the door can not be seen outside. The electronic lock system can achieve the above various purposes by going to any lock position fittings and the like to avoid being damaged. In particular, the user can set a very secure unlock code by himself, and can set different levels of security by himself, without the manufacturer's specification at the factory, there will be no leakage of password information, and there will be no problem. You must remember the unlock code and have the problem of forgetting or leaking the password. Moreover, the electronic lock disclosed in the present invention can be remotely unlocked without using a wireless network architecture, and there is no security problem of the network hacker. Moreover, one of the identification codes can be set as the controller code, which can store different personnel to open the record, and can perform subrogation authorization unlock management. Therefore, the electronic lock disclosed in the present invention can provide a hidden multi-function electronic lock that is constructed by the user to unlock the password, and can provide an electronic lock that is safe and suitable for various purposes and applications in a simple architecture.

以下,茲配合各圖式列舉對應之較佳實施例來對本發明所揭電子鎖系統的組成構件及達成功效來進行清楚、完整的描述。然,所述實施例是本發明一部分實施例,而不是全部的實施例。各圖式中各元件僅用來說明本發明的技術特徵,而非對本發明構成限制。Hereinafter, the components and the efficacies of the electronic lock system disclosed in the present invention will be clearly and completely described in conjunction with the preferred embodiments of the drawings. However, the described embodiments are a part of the embodiments of the invention, and not all of the embodiments. The elements in the various figures are only used to illustrate the technical features of the present invention and are not intended to limit the invention.

根據本發明之第一實施例而成的電子鎖系統包含有一電子鎖100與一開鎖控制器200,因電子鎖本身也可以是一個系統,故在此所稱電子鎖系統也可以只包含電子鎖100本身。The electronic lock system according to the first embodiment of the present invention comprises an electronic lock 100 and an unlocking controller 200. Since the electronic lock itself can also be a system, the electronic lock system can also be referred to as 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 configured to receive an unlocking signal wirelessly. The storage unit 120 is configured to store at least two sets of unlocking identification codes; the power of the components may be from a battery that is not displayed, or a home power line. The unlocking signal may be a wireless signal including various unlocking codes UC, for example, may include a signal type code, a control code, or an identification code IP, etc., and may be in the form of a fixed code, a rolling code, or a password, etc.; The code IP may be an electronic lock identification code RXID, 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, configured to identify whether the received unlocking signal meets the at least two sets of unlocking identification codes IP; a timing module 134 for timing the time of identifying the received unlocking signal; And an actuation signal generating module 136, configured to send an actuation signal to the unlocking actuator 140 to unlock when the unlocking signal matching the at least two sets of unlocking identification codes IP is recognized within a specific time period. 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 codes to be recognized by the identification module, so that the user can respond The password level you want for the security level you want.

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

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

如圖2所示,本實施例所揭開鎖控制器200主要包含:一無線發射單元210、一儲存單元220、一控制單元230、一操作介面240、以及一設定輸出/入埠250;且其中控制單元230包含有一電力更換確認模組232。這些元件之電源來自一未顯示之電池。As shown in FIG. 2, the unlocking controller 200 of the present 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 250; The control unit 230 includes a power replacement confirmation module 232. The power to these components comes from a battery that is not shown.

其中,儲存單元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 unlock identification codes IP corresponding to the electronic lock 100. The control unit 230 and the wireless transmitting unit 210 are collectively referred to as an emission control unit for transmitting a set of unlock codes UC containing at least one of the at least two sets of unlocking identification codes IP to the electronic lock 100 during the specific time. The operation interface 240 is used for the user to input an unlocking action. The output/input port 250 is set for the user to input or output various set unlock codes UC, and the various unlock codes UC are stored in the storage unit. The power replacement confirmation module 232 is configured to provide a multi-layer control mechanism for the user to have a set of procedures and reminders when the power of the electronic lock 100 is insufficient, and issue a power replacement confirmation code PC to temporarily cancel the sleep of the electronic lock 100. The state, the details of which 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,使其開鎖。Hereinafter, the details of the electronic lock 100 disclosed in the embodiment will be further described. First, the unlocking action will be explained. The identification module 132 is configured to process at least five sets of unlocking codes UC. The identification module 132 can continuously and simultaneously determine a set of unlocking codes UC, and according to the setting of the security level setting module 138, control how many groups of unlocking are to be determined. code. Each set of unlocking codes UC may include an electronic lock identification code RXID or an unlocking controller identification code TXID, and various motion control codes and the like. When the electronic lock 100 receives a wireless RF unlock signal from the unlock 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 when receiving the unlocking signal, or may send a timing signal to the timing module 134 after identifying the first group of unlocking identification codes. Timing, the timing module 134 issues a timeout signal after a set time after the start of the timer. After the identification module 132 recognizes the correct unlock identification code of the set number of groups, an identification pass signal is transmitted to the actuation signal generation module 136. At this time, the actuation signal generation module 136 refers to the signal from the timing module 134. If the timeout signal is received when the identification pass signal is received, the actuation signal is not sent; if the timeout has not been received yet The signal can then send an actuation signal to the unlock actuator 140 to unlock it.

其次,就安全等級設定作說明。在上述情形中,使用者可自行依其想要設定的解鎖識別碼組數,以及該等組數的識別時限,進行設定,以設定出不同等級的安全性。這其中的設定當然也要配合解鎖識別碼IP的設定,即在使用者初始設定解鎖識別碼IP時,即要決定要以多少組解鎖碼UC來進行解鎖,並了解該等解鎖碼UC被識別模組132識別所需時間,以進行安全等級設定模組135之設定。藉由特定時段內完成識別之設計,將可防止偷竊者以掃碼方式破解解鎖碼UC,因為掃碼需要一段更長時間。藉由安全等級之可變更設定,將使電子鎖100之編碼規則更多變化,而使其可應用的功能更多變化,且令偷竊者更難猜到密碼。Next, explain the security level setting. In the above case, the user can set the number of unlocking identification codes that he wants to set and the recognition time limit of the number of the groups to set different levels of security. Of course, the setting of the unlocking identification code IP is also required, that is, when the user initially sets the unlocking identification code IP, it is determined how many sets of unlocking codes UC are to be unlocked, and it is understood that the unlocking codes UC are recognized. The module 132 identifies 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 the thief from cracking the unlocking code UC by scanning code, because the scanning code takes a longer time. With the changeable setting of the security level, the coding rules of the electronic lock 100 will be more changed, and the functions that can be applied are more changed, and it is more difficult for the thief to guess the password.

例如,依安全性,可以分為下列等級,使用者可依應用需求,自行設定中/高安全性鎖。例如,低安全性者:使用一組解鎖碼;中安全性者:使用二組解鎖碼;高安全性者:需同時接收(在1秒以內)二組解鎖碼或識別二組解鎖識別碼才能解鎖;超高安全性(金庫等級)者:需同時接收(在1秒以內)三組解鎖碼或識別二組解鎖識別碼才能解鎖。For example, depending on the security, it can be divided into the following levels, and the user can set the medium/high security lock according to the application requirements. For example, low security: use a set of unlock codes; medium security: use two sets of unlock codes; high security: need to receive (within 1 second) two sets of unlock codes or identify two sets of unlock codes Unlocked; ultra-high security (treasury level): you need to receive (within 1 second) three sets of unlock codes or identify two sets of unlock identification codes 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 setting the electronic lock identification code RXID or the group code GID, in a preferred embodiment, the user uses a computer and the code setting application installed therein to make the computer randomly coded. The mode sets the unlock identification code IP. Then, the unlock 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/input 250 of the unlocking controller 200. In a modified example, the setting of the unlocking identification code IP may also be performed by the user from an unlocking controller loaded with an unlocking identification code setting module (not shown), and then the user unlocks the controller. The unlock identification code IP is output to the electronic lock 100 via the setting output port 250 and the setting input port 150. In this way, by setting the random number of random codes to, for example, 16 bits, it is possible to generate up to more than 65,000 sets of unlocking identification codes, and when higher security is required, the unlocking identification code can be set to 64. One bit. Wherein, both the electronic lock 100 and the unlocking controller 200 are input with the same pairing unlocking identification code IP, and the user does not have to remember the unlocking code, so there is no problem of forgetting the password or being stolen because of the record. A set of unlock codes is quite complicated. When two or more sets of unlock codes are used and they are 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 electronic lock manufacturer's code pairing. When the unlocking controller 200 is inadvertently lost, the user only needs to purchase an unlocking controller 200 for resetting, and re-write the new unlocking identification code IP into the electronic lock and the unlocking controller without replacing the entire set of electronic components. Lock system. Moreover, since there is no button at all on the electronic lock, it is not known that the password is set and unlocked by the button on the electronic lock, there will be no trace of the residual unlock button, and the position of the electronic lock will not be visible outside the door. There is no easy situation to be destroyed.

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

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

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

因此,綜合各種應用例,本發明藉由將所揭電子鎖系統中的電子鎖100設定成要能識別至少二組解鎖識別碼,並將開鎖控制器200設定成能發射該至少二組解鎖識別碼之至少其中之一,將可以達成各種不同的應用與功能。Therefore, in combination with various application examples, the present invention sets the electronic lock 100 in the disclosed electronic lock system to be capable of recognizing at least two sets of unlock identification codes, and sets the unlock controller 200 to transmit the at least two sets of unlock identification. At least one of the codes will 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要再次開鎖時,仍要進行繁複的點選動作,以利提醒使用者更換電池,直到電池真的沒電了。Hereinafter, the details of the operation of the power alert unit 170 will be further described. In this embodiment, when the battery is used as the power source of the electronic lock 100, the power warning unit 170 performs battery power monitoring, and when the power is 15% remaining, an LED light (not shown) is turned on red. And/or a buzzer (not shown) is called every 1 hour. When the power is 5% remaining, the electronic lock 100 is stopped from receiving the unlock signal, and the unlocking action goes to sleep. At this time, even if the unlocking controller 200 issues a correct unlocking signal, the electronic lock 100 will not unlock. The user must first replace the battery module 透过 through the power replacement confirmation module 232 of the unlock controller 200, for example, in the power shortage item in the setting item of the unlocking controller 200, and let the unlock controller 200 emit a power. After the confirmation code PC is replaced, the electronic lock 100 can temporarily release the sleep state to receive the unlock code UC, and perform a normal recognition process on the unlock signal. After that, if the user still does not change 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 action is still required to prompt the user to replace the battery until The battery is really dead.

綜合上述,本發明所揭電子鎖可以提供一種由使用者自主建構解鎖密碼之隱藏式多功能電子鎖,且能以一簡單架構,提供安全且適於多種用途與應用的電子鎖。In summary, the electronic lock disclosed in the present invention can provide a hidden multi-function electronic lock that is constructed by the user to unlock the password, and can provide an electronic lock that is safe and suitable for various purposes and applications in a simple architecture.

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

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

該基數產生模組234用以產生一動態基數或稱祕密基數,其可以是一亂數,也可以是一計數用的計數。當基數產生模組234以計數器來實現時,即在每次開鎖控制器200發出一含有該基數及解鎖識別碼IP的解鎖碼UC時,將該計數累加一例如1的特定值,並儲存該值,以供後續發送。加密模組236含有一第一加密子模組、第二加密子模組、以及一決定子模組(未圖示)。用以至少對解鎖識別碼IP進行加密。控制時間限定模組238用以限定該開鎖控制器200可進行解鎖控制的時間。The cardinality generation module 234 is configured to generate a dynamic base or a secret base, which may be a random number or a count for counting. When the cardinality generation module 234 is implemented by a counter, that is, each time the unlocking controller 200 issues an unlock code UC containing the cardinality and the unlocking identification code IP, the counter is accumulated by a specific value of, for example, 1 and stored. Value for subsequent delivery. The encryption module 236 includes a first encryption sub-module, a second encryption sub-module, and a decision sub-module (not shown). Used to encrypt at least the unlock identification code IP. The control time limiting module 238 is used to define the time at which the unlocking controller 200 can perform 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 unlock controller 200 transmits the unlock code UC will be described with reference to FIG. First, the cardinality generation module 234 generates a base X; then the control unit 230 determines to obtain a first key in the key pool of the storage unit as the initial key K0, for example, the first of the 100 keys. Then, the key encryption key ENSD is generated by the first encryption sub-module (not shown) in the encryption module 236 by using the key K0 and the base X. Then, according to the encryption base number ENSD, a second key to be selected in the key pool of the storage unit 220 is determined via a determination submodule (not shown) in the encryption module 236, for example, the 33rd. Keys, as the dynamic encryption key KE. The first encryption sub-module and the determination sub-module may be a hardware structure or a software program.

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

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

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

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

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

然後,於產出動態加密金鑰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 unlock identification code IP stored in the storage unit 220 are transmitted through one of the second encryption submodules of the encryption module 236. A group (not shown) produces a set of encrypted unlock codes ENFD. Thereafter, the control unit 230 can send the encrypted base digital ENSD and the encrypted unlock code ENFD to the wireless transmitting unit 210, and transmit an unlocking signal to the electronic lock for receiving. The second encryption sub-module may be a hardware structure or a software program.

在一進一步變形實施例中,如前所述,儲存單元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. The code may be an identification code similar to a key level, or may be only A serial number; it can be user-customized, or the key that is encoded at the time of shipment, and the serial number is given for selection. While transmitting the encrypted base digital ENSD and the encrypted unlocking code ENFD, the controller identification code can also be issued at the same time after being encrypted or unencrypted for unlocking identification of various applications. In the modified embodiment, an encryption controller identification code ENTX is generated according to the controller identification code TXID and one of the initial keys K0 in the key pool via the encryption module 236. In another modification, when the controller identification code TXID itself is also a key, the encryption controller identification code ENTX may also be generated via the encryption module 236 according to the controller identification code TXID and the base number X. Further, in another modification, the controller identification code may be directly transmitted along with the encryption base number ENSD and the encryption unlock code ENFD without encryption.

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

又,在一變形例中,子開鎖控制器設定成跟母開鎖控制器一樣多的開鎖控制器識別碼TXID,但被限定不能再複製給其他子開鎖控制器。在此例中,開鎖控制器識別碼TXID,可以只是一個序號,也可以是不同的金鑰,可以由使用者自編,也可以在產品出廠時即被設定。Also, in a variant, the sub-unlocking controller is set to have as many unlocking controller identification codes TXID as the female unlocking controller, but is limited to be copied to other sub-unlocking controllers. In this example, the unlocking controller identification code TXID can be just a serial number or a different key, which can be programmed by the user or set at the time of shipment.

又,在母開鎖控制器授權控制權給子開鎖控制器時,可以同時透過控制時間限定模組238對各子開鎖控制器,設定其被授權開鎖的時段。在一有限定授權時間的例子中,可以設定成母開鎖控制器中的預設組數控制器識別碼則可以被重複給子開鎖控制器使用,只要時間錯開即可。如此,可以擴展應用,例如只開放給持有子開鎖控制器的人在某一時段進行開鎖。Moreover, when the parental unlocking controller authorizes the control to the child unlocking controller, the control time limiting module 238 can simultaneously set the time period for which each of the sublocking controllers is authorized to unlock. In an example with a limited authorization time, the preset number of controllers in the master unlock controller can be set to be used by the sub-lock controller, as long as the time is staggered. In this way, the application can be extended, for example, only open to a person holding the sub-locking controller to unlock at a certain time.

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

如圖4所示,在此種例子中,於開始加密之前,使用者在初始設定一開鎖控制器時,要先指定要用哪一序號,作為開鎖控制器識別碼TXID,例如第2號TX2。要發送信號而開始加密時,即先以一初始金鑰K0,對所選定的序號TX2進行加密,而產生一ENTX。接著,再以選定之序號所對應的金鑰,例如K2,作為新初始金鑰NK0,對基數X進行加密,而產生一如前面所述的加密基數碼ENSD。之後的加密動作,則如前面所述一樣,可以用新初始金鑰進行加密即可,或是再加上動態加密金鑰KE進行加密。相較於前面所述實施例,當初始金鑰K0是產品出廠時即統一被設定好時,在本變形例中對基數X進行加密的金鑰,並非前面所述固定的K0,而是會依使用者之設定而變的新初始金鑰NK0,如此的好處是,可以增加加密金鑰的變化性,而更不容易被解碼,而且可適用於開鎖控制器數量管控。As shown in FIG. 4, in this example, before starting the encryption, when the user initially sets an unlock controller, it is necessary to specify which serial number to use as the unlocking controller identification code TXID, for example, the second TX2. . When the signal is to be transmitted and the encryption is started, the selected serial number TX2 is first encrypted with an initial key K0 to generate an ENTX. Then, the base X is encrypted by using the key corresponding to the selected serial number, for example, K2, as the new initial key NK0, to generate an encrypted base number ENSD as described above. The subsequent encryption action can be encrypted with the new initial key or encrypted with the dynamic encryption key KE as described above. Compared with the foregoing 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 the present modification is not the fixed K0 described above, but The new initial key NK0, which is changed according to the user's settings, has the advantage that the variability of the encryption key can be increased, and it is less likely to be decoded, and 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 the present embodiment further has a decryption module 138. The decryption module 138 includes first and second decryption submodules that are set corresponding to the unlock controller 200. (not shown), and a decision sub-module (not shown). In addition to storing the set unlocking identification code for comparison, the storage unit 120 is also configured to store a same key database as the key database stored in the unlocking controller 200, that is, including multiple cryptographic keys. Each key can be a 64-bit key, and the number of keys can be arbitrarily set up to 100. However, in a variant embodiment, the keystore in the storage unit 120 does not store a key similar to the keystore in the unlock controller 200, but only stores the same protocol initial as the unlock controller 200. The key K0 can be.

以下,以圖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. When the electronic lock 100 receives the transmission code ENSD and ENFD, the identification module 132 first determines which code is to determine how many codes to solve. Then, since the electronic lock 100 also stores a key database of, for example, 100 sets of keys, and the setting of the unlocking controller is also determined that the first key is the initial key K0, the electronic lock 100 receives the transmission. When the RF signal is received, the first decryption sub-module in the decryption module 138 is decrypted by the initial key K0, and the base generation module of the unlock controller 200 is deduced. The base X produced by 234. Then, the decrypted module X is passed through the decryption module 138, and has a decision sub-module (not shown) having the same logic design as the unlock controller 200, and determines a second key in the key library. The second key at this time is the same as the dynamic encryption key KE in the unlock controller 200. Therefore, the second key thus obtained is also referred to as a dynamic encryption key KE.

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

又,在另一變形實施例中,當開鎖控制器200設計成具有至少一個中間金鑰進行加密時,電子鎖100亦在解密模組138中,設計成解出該至少一個中間金鑰。亦即,在初始金鑰K0與加密金鑰KE之間設有至少一個中間金鑰時,由初始金鑰K0解出的第二金鑰是一中間金鑰,此時,再以該中間金鑰與前基數X,解出一第三金鑰,作為動態加密金鑰KE。有二個中間金鑰時,即以此類推。Also, in another variant embodiment, when the unlock 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 resolve 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 solved by the initial key K0 is an intermediate key, and at this time, the intermediate gold is further used. The key and the pre-base number X solve a third key as the dynamic encryption key KE. When there are two intermediate keys, and so on.

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

又,在一變形實施例中,該處理單元130還包含一基數比對模組139,每解密出該基數X,該基數X即被儲存,並將該基數X與前一次所儲基數作比較,當其差為一特定值之範圍內時,或不同時,才能達成解密。尤其,當開鎖控制器200以計數來作為基數X時,電子鎖100端亦儲存所解密出來的新基數,只有在新基數與舊基數之間相符或相差在一特定範圍值時,才能解鎖。如此一來,即使無線信號被側錄,也無法重複使用,電子鎖100不會因為被側錄而被解鎖。尤其是當計數高達數十萬時,必須過了很多年才會重複,由此可見以計數作為基數之優點。Moreover, in a modified embodiment, the processing unit 130 further includes a cardinality comparison module 139. Each time the cardinal number X is decrypted, the cardinal number X is stored, and the cardinal number X is compared with the previous stored base number. Decryption can be achieved when the difference is within a certain range of values, or not at the same time. In particular, when the unlocking controller 200 counts as the base X, the electronic lock 100 also stores the decrypted new cardinality, which can only be unlocked if the new cardinality matches the old cardinality or differs by a certain range of values. In this way, even if the wireless signal is recorded sideways, it cannot be reused, and the electronic lock 100 is not unlocked because it is being recorded. Especially when counting up to hundreds of thousands, it must take many years to repeat, which shows the advantage of counting as a base.

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

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

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

又,在此第二實施例中,該計時模組開始計時的時間,可以是在解密模組138一收到解鎖信號時即開始。Moreover, in this second embodiment, the timing at which the timing module starts counting may be started when 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 the signal having the same base X is continuously received more than a certain number of times in a certain period of time, or when the base number X of a certain serial number is continuously erroneously more than a certain number of times, for example, 30 times or more, the electronic lock 100 will sleep for one hour. To burglary by the anti-theft thief. Moreover, it can be further set that once the legal unlocking controller 200 is to be unlocked, the unlocking controller 200 must first issue an identity confirmation signal to wake up to cancel the sleep, and then it is not restricted to sleep for 1 hour and cannot be unlocked. The identification signal of the time is also preferably encrypted by, for example, a specific key agreed upon by both parties.

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

又,以上之實施例是以設置二層金鑰的情形來說明加密方法。在一變形實施例中,加密方式也可以不用如上面所述般設置二層的金鑰,而是一層金鑰即可。亦即,在金鑰庫中只儲存一金鑰,並以此一金鑰對基數及解鎖識別碼IP進行加密即可。尤其是,當開鎖控制器識別碼TXID本身即是一把金鑰形式時,並由使用者自行設定或隨機設定,且與電子鎖的配對狀況單純時,更可直接利用該識別碼TXID對基數X及解鎖識別碼IP分別或一起進行加解密動作,而成一簡單的加密方法。Further, the above embodiment illustrates the encryption method in the case of setting a two-layer key. In a variant embodiment, the encryption method may not be configured with a layer 2 key as described above, but may be a layer of a key. That is, only one key is stored in the key database, and the base and the unlock identification code IP are encrypted by using 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 set, and the pairing status with the electronic lock is simple, the identification code TXID can be directly used as the base number. The X and the unlock identification code IP are respectively encrypted or decrypted 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 a set of unlock codes UC is transmitted, there are various combinations. For example, only the fixed code or the rolling code of the unlocking code UC may be sent as described in the first embodiment; the fixed code of the partial unlocking code UC may be sent, plus the encrypted base digital ENSD and the encrypted unlocking code ENFD; or, only the sending The encryption base digital ENSD and the encryption unlock code ENFD; or the encryption unlock code encrypted with the base number and the unlock code. Therefore, preferably, there is a code 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. When the fixed code of the partial unlocking code UC is simultaneously transmitted, and the encrypted base digital ENSD and the encrypted unlocking code ENFD are added, there is an advantage that the unlocking code UC can be decrypted after the unlocking code UC is decrypted, and compared with the fixed code transmitted at the same time. In order to further prevent the pirate from infiltrating the encrypted signal due to noise, the decoding is successful.

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

綜合上述,本發明藉由使用二組使用者自建的識別碼,使得該功能擴展非常大,而可以提供一種由使用者自主建構解鎖密碼之隱藏式多功能遙控電子鎖,並提供一使用者可自主建構安全等級的遙控電子鎖系統,再經過安全的加密傳送解鎖碼的方法,將可以使整個電子鎖的保安性更強,防止解鎖碼被盜取,而獲得一種可以達成上述各種目的的電子鎖系統。In summary, the present invention expands the function by using two sets of user-created identification codes, and can provide a hidden multi-function remote electronic lock that is constructed by the user to unlock the password, and provides a user. A remote-controlled electronic lock system that can independently build a security level, and then securely encrypt and transmit the unlock code, can make the security of the entire electronic lock stronger, prevent the unlock code from being stolen, and obtain a kind of purpose that can achieve the above various purposes. Electronic lock system.

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

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

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

120‧‧‧儲存單元120‧‧‧ storage unit

130‧‧‧處理單元130‧‧‧Processing unit

132‧‧‧識別模組132‧‧‧ Identification module

134‧‧‧計時模組134‧‧‧Timekeeping Module

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

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

138‧‧‧解密模組138‧‧‧ decryption module

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

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

150‧‧‧設定輸入埠150‧‧‧Setting input埠

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

170‧‧‧電力警示單元170‧‧‧Power Alert Unit

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

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

220‧‧‧儲存單元220‧‧‧ storage unit

230‧‧‧控制單元230‧‧‧Control unit

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

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

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

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

240‧‧‧操作介面240‧‧‧Operator interface

圖1是依照本發明第一實施例而成之電子鎖的元件示意圖。 圖2是依照本發明第一實施例而成之開鎖控制器的元件示意圖。 圖3是依照本發明第二實施例而成之電子鎖的元件示意圖。 圖4是依照本發明第二實施例而成的加密方法流程圖。 圖5是依照本發明第二實施例而成之開鎖控制器的元件示意圖。 圖6是依照本發明第二實施例而成的解密方法流程圖。BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a schematic view of the components of an electronic lock in accordance with a first embodiment of the present invention. 2 is a schematic diagram of components of an unlocking controller in accordance with a first embodiment of the present invention. 3 is a schematic view of components of an electronic lock in accordance with a second embodiment of the present invention. 4 is a flow chart of an encryption method in accordance with a second embodiment of the present invention. Figure 5 is a block diagram of an unlocking controller in accordance with a second embodiment of the present invention. 6 is a flow chart of a decryption method in accordance with a second embodiment of the present invention.

Claims (22)

一種電子鎖系統,包含有一電子鎖,其具有:一設定輸入埠,用以供使用者自行可變地設定至少二組解鎖識別碼,且該等至少二組解鎖識別碼之至少其中之一係一由使用者利用電腦自動產生之亂數;一儲存單元,可供儲存該等至少二組解鎖識別碼;一無線接收單元,用以無線接收一解鎖信號;一處理單元,連接該無線接收單元與該儲存單元,且包含有:一識別模組,用以識別該解鎖信號,並可比對是否符合該等至少二組解鎖識別碼;以及,一作動信號產生模組,用以在比對出符合該等至少二組相對應識別碼之下,送出一作動信號;一開鎖致動器,用以在收到該作動信號時,進行開鎖。 An electronic lock system includes an electronic lock having: a setting input port for the user to variably set at least two sets of unlocking identification codes, and at least one of the at least two sets of unlocking identification codes a random number automatically generated by the user by using a computer; a storage unit for storing at least two sets of unlocking identification codes; a wireless receiving unit for wirelessly receiving an unlocking signal; and a processing unit connected to the wireless receiving unit And the storage unit, and comprising: an identification module for identifying the unlocking signal, and comparing whether the at least two sets of unlocking identification codes are met; and an actuation signal generating module for comparing Corresponding to at least two sets of corresponding identification codes, an actuation signal is sent; and an unlocking actuator is used to unlock when receiving the actuation signal. 如請求項1之電子鎖系統,還包含一計時模組,用以在收到該解鎖信號後開始計時,且該作動信號產生模組在一特定時間內比對出該至少二組相對應識別碼時,才會送出該作動信號。 The electronic lock system of claim 1, further comprising a timing module, configured to start timing after receiving the unlocking signal, and the actuation signal generating module correspondingly identifies the at least two groups in a specific time. The action signal is sent when the code is coded. 如請求項2之電子鎖系統,其中該處理單元還包含一安全等級設定模組,用以供變更該特定時間之長短或該識別模組要識別的解鎖識別碼組數。 The electronic lock system of claim 2, wherein the processing unit further comprises a security level setting module for changing the length of the specific time or the number of unlocking identification codes to be recognized by the identification module. 如請求項1之電子鎖系統,其中至少一組解鎖識別碼為一開鎖控制器識別碼,該開鎖控制器識別碼是由使用者利用電腦自動產生。 The electronic lock system of claim 1, wherein at least one of the unlocking identification codes is an unlocking controller identification code, and the unlocking controller identification code is automatically generated by a user using a computer. 如請求項1之電子鎖系統,其中該等至少二解鎖識別碼其中之一為一電力更換確認碼,且其中,該電子鎖還包含一電力警示單元,用以在電力剩 下一特定值時,進入休眠模式而停止接收解鎖碼信號,且在進入該休眠模式之下,只有接收到該電力更換確認碼時,才會停止休眠。 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 comprises a power warning unit for remaining power At the next specific value, the sleep mode is entered and the stop code signal is stopped, and when the sleep mode is entered, the sleep is stopped only when the power exchange confirmation code is received. 如請求項1之電子鎖系統,其中,該儲存單元儲存有一金鑰庫,金鑰庫包含有至少一金鑰;該無線接收單元所接收之解鎖信號含有一利用一基數與該金鑰兩者至少其中之一對一組解鎖碼加密而成的加密解鎖碼;且該處理單元還包含一解密模組,用以從所收該加密解鎖碼中,利用該金鑰,解出該基數及該組解鎖碼二者至少其中之一,供與其中一組解鎖識別碼進行比對。 The electronic lock system of claim 1, wherein the storage unit stores a keystore, the keystore includes at least one key; and the unlock signal received by the wireless receiving unit includes a base number and the key An encryption unlocking code obtained by encrypting at least one of the unlocking codes; and the processing unit further includes a decryption module, configured to use the key to extract the cardinal number and the At least one of the group unlock codes is for comparison with one of the set of unlock identification codes. 如請求項6之電子鎖系統,其中,該解密模組更利用該至少一金鑰與該基數兩者至少其中之一,透過一加密邏輯,產出一動態加密金鑰,再以該動態加密金鑰,解出該一組解鎖碼。 The electronic lock system of claim 6, wherein the decryption module further utilizes at least one of the at least one key and the base, generates a dynamic encryption key through an encryption logic, and then uses the dynamic encryption Key, solve the set of unlock codes. 如請求項6之電子鎖系統,其中,該基數為一計數,且該處理單元還包含一基數比對模組,用以在解密出該基數後,將該基數與前一次解鎖之基數作比較,當其差為一特定值之範圍內時,才能達成解鎖。 The electronic lock system of claim 6, wherein the base is a count, and the processing unit further comprises a base comparison module for comparing the base with the previous unlocked base after decrypting the base Unlocking can only be achieved when the difference is within a certain range of values. 如請求項8之電子鎖系統,其中,該無線接收單元所接收之解鎖信號包含一對應於各別開鎖控制器的開鎖控制器識別碼,且該電子鎖可供儲存一計數庫,其記錄有各別對應於多數開鎖控制器之多數計數,該基數比對模組就所解密出之該基數,與所收控制器識別碼所對應的既存計數,進行比較。 The electronic lock system of claim 8, wherein the unlocking signal received by the wireless receiving unit comprises an unlocking controller identification code corresponding to each unlocking controller, and the electronic lock is configured to store a counting library, wherein the recording has Each corresponds to a majority of the counts of the majority of the unlock controllers, and the cardinality compares the base number decrypted by the module with the existing count corresponding to the received controller identification code. 如請求項6或9之電子鎖系統,其中,該金鑰庫儲存有對應於不同開鎖控制器識別碼之金鑰,並先以一金鑰庫中之一初始金鑰,對加密之開鎖控制器識別碼進行解密,而取得該開鎖控制器識別碼之後,再以該開鎖控制器識別碼所對應的金鑰,作為新初始金鑰,對該加密解鎖碼進行後續解密。 The electronic lock system of claim 6 or 9, wherein the key store stores a key corresponding to a different unlocking controller identification code, and first controls the unlocking of the encryption by using an initial key in a key database. The device identification code is decrypted, and after the unlocking controller identification code is obtained, the key corresponding to the unlocking controller identification code is used as a new initial key, and the encrypted unlocking code is subsequently decrypted. 如請求項6之電子鎖系統,其中該處理單元還包含一防衛機制,用以在具有相同基數的解鎖訊號被連續收到一定次數以上或基數連續錯誤一定次數以上時,使該電子鎖進入休眠狀態。 The electronic lock system of claim 6, wherein the processing unit further comprises a defense mechanism for causing the electronic lock to enter a sleep when the unlock signal having the same base is continuously received more than a certain number of times or the base number is consecutively incorrectly more than a certain number of times status. 如請求項1之電子鎖系統,還包含至少一開鎖控制器,其具有:一儲存單元,儲存有該至少二組解鎖識別碼之至少其中之一;以及,一射控單元,用以在該特定時間內發射一含有該至少二組解鎖識別碼之至少其中之一的解鎖信號給該電子鎖。 The electronic lock system of claim 1, further comprising at least one unlocking controller having: a storage unit storing at least one of the at least two sets of unlocking identification codes; and an emission control unit for 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 specific time. 如請求項12之電子鎖系統,其中,該開鎖控制器還具有一電力更換確認模組,用以在被動作時,使該開鎖控制器發出一電力更換確認碼。 The electronic lock system of claim 12, wherein the unlocking controller further has a power replacement confirmation module for causing the unlocking controller to issue a power replacement confirmation code when being actuated. 如請求項12之電子鎖系統,其中,該開鎖控制器之儲存單元儲存有一金鑰庫,該金鑰庫包含有至少一金鑰;該控制單元還包含一基數產生模組與一加密模組;該基數產生模組用以產生一基數;該加密模組用以根據該基數與該金鑰庫中之一金鑰兩者至少其中之一,產出一個對一組解鎖碼進行加密而成的一組加密解鎖碼,供該無線發射單元發射出內含該組加密解鎖碼的解鎖信號。 The electronic lock system of claim 12, wherein the storage unit of the unlock controller stores a keystore, the keystore includes at least one key; the control unit further includes a base generation module and an encryption module The cardinality generating module is configured to generate a cardinality; the cryptographic module is configured to generate a pair of unlocking codes according to the cardinality and at least one of the keys in the keying 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之電子鎖系統,其中,該加密模組還包含用以依據該金鑰庫中之一金鑰與該基數兩者至少其中之一,產出至少一動態加密金鑰,再以該動態加密金鑰,對該組解鎖碼進行加密,而產出該加密解鎖碼。 The electronic lock system of claim 14, wherein the encryption module further comprises: at least one dynamic encryption key is generated according to at least one of a key of the key library and the base, and then The dynamic encryption key encrypts the set of unlock codes to generate the encrypted unlock code. 如請求項14之電子鎖系統,其中,該開鎖控制器被設定有一開鎖控制器識別碼,且被匹配有一在該金鑰庫其中之一的金鑰;且其中該加密模組以一不同於該被匹配金鑰的初始金鑰,對該開鎖控制器識別碼加密,而產生一加密控制器識別碼供發送,並以該開鎖控制器識別碼所匹配的金鑰,作為該用以對解鎖碼進行加密的金鑰。 The electronic lock system of claim 14, wherein the unlock controller is configured with an unlock controller identifier and is matched with a key in one of the key pools; and wherein the encryption module is different from The initial key of the matched key is encrypted by the unlocking controller identification code, and an encryption controller identification code is generated for transmission, and the key matched by the unlocking controller identification code is used as the unlocking The key to encrypt the code. 如請求項12至16其中任一項之電子鎖系統,包含一母開鎖控制器與至少一子開鎖控制器,該母開鎖控制器之儲存單元儲存有多數開鎖控制器識別碼;該子開鎖控制器儲存有該等多數開鎖控制器識別碼之至少其中之一,且不能再將該至少一開鎖控制器識別碼分用給其他子開鎖控制器。 The electronic lock system of any one of claims 12 to 16, comprising a female unlocking controller and at least one sub-locking controller, wherein the storage unit of the female unlocking controller stores a plurality of unlocking controller identification codes; the sub-unlocking control The device stores at least one of the plurality of unlocking controller identification codes, and the at least one unlocking controller identification code can no longer be assigned to the other sub-unlocking controllers. 如請求項12項之電子鎖系統,其中該開鎖控制器還包含有一控制時間限定模組,用以限定該開鎖控制器只能在一規定時間內使用。 The electronic lock system of claim 12, wherein the unlocking controller further comprises a control time limiting module for limiting the unlocking controller to be used only for a specified time. 一種密碼加密方法,該密碼儲存在一儲存單元中,且該儲存單元還儲存有一金鑰庫,該金鑰庫含有至少一金鑰;該方法包含:因應每次加密要求,取得一動態基數;取出該至少一金鑰對該基數進行加密,而產生一加密基數碼供傳送;以及根據該至少一金鑰及該基數兩者至少其中之一,產生一動態金鑰,再以該動態金鑰對該密碼進行加密,而產出一加密密碼供傳送。 A password encryption method, the password is stored in a storage unit, and the storage unit further stores a key database, the key database contains at least one key; the method comprises: obtaining a dynamic base number according to each encryption requirement; Extracting the at least one key to encrypt the base, and generating an encrypted base digital for transmission; and generating a dynamic key according to at least one of the at least one key and the base, and then using 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 to an initial key, the method further comprising: using the initial key, for a user selected by the user corresponding to the other gold in the keystore The serial number of the key is encrypted, and an encrypted serial number is output for transmission; and wherein the step of encrypting the base is encrypted by using a key corresponding to the serial number; and the dynamic key uses the corresponding key And at least one of the base numbers is generated. 一種密碼解密方法,應用在一裝置中,該裝置具有一儲存單元供儲存有一金鑰庫,且該金鑰庫含有至少一金鑰;該方法包含:接收一加密一動態基數而成的加密動態基數碼及一加密一密碼而成的加密密碼;取出該至少一金鑰,對該加密動態基數碼進行解密,而得出該基數;利用該基數與該至少一金鑰兩者至少其中之一,解密出一動態金鑰;以及利用該動態金鑰,對該加密密碼進行解密,而得出該密碼。 A password decryption method is applied to a device, the device has a storage unit for storing a key database, and the key database contains at least one key; the method comprises: receiving an encrypted dynamic base by encrypting a dynamic base a base code and an encrypted password encrypted by a password; extracting the at least one key, decrypting the encrypted dynamic base digital to obtain the base; using at least one of the base and the at least one key Decrypting a dynamic key; and decrypting the encrypted password using the dynamic key to obtain the password. 如請求項21之方法,其中該金鑰庫之其中之一被設為一初始金鑰;且該方法還包含:接收一對一序號加密而成的加密序號碼;以及取出該初始金鑰,解密出該序號;且其中,對該加密基數碼進行解密之步驟,係利用該序號在該金鑰庫中所對應的金鑰進行解密;以及該動態金鑰係利用該對應金鑰與該基數兩者至少其中之一而產生。The method of claim 21, wherein one of the key stores 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 extracting the initial key, Decrypting the serial number; and wherein the step of decrypting the encrypted base digital number is performed by using a key corresponding to the key in the keystore; and the dynamic key uses the corresponding key and the base At least one of the two is produced.
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 true TWI638081B (en) 2018-10-11
TW201934861A 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)

Cited By (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

Citations (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
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
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

Patent Citations (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
TWM510956U (en) * 2015-07-06 2015-10-21 Qi-Yang Chen Unlocking system of electronic lock
TWI573921B (en) * 2015-07-06 2017-03-11 陳啟揚 Method And System Of Unlocking Digital Lock
TWM528352U (en) * 2016-05-03 2016-09-11 生茂系統開發有限公司 Electric lock having dynamic keyboard and the system using the same

Cited By (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

Also Published As

Publication number Publication date
TW201934861A (en) 2019-09-01

Similar Documents

Publication Publication Date Title
WO2019153778A1 (en) Remote control electronic lock system and encryption and decryption methods thereof
CA2527836C (en) An in-circuit security system and methods for controlling access to and use of sensitive data
US20070290789A1 (en) Intelligent Interactive Lock and Locking System
US20070132550A1 (en) Electromechanical Lock Device And Method
WO2013074300A1 (en) Method of distribution stand-alone locks
WO2019204954A1 (en) Smart lock system
CN108712389A (en) A kind of intelligent lock system
TWI550435B (en) Control system operated by mobile devices
MXPA05002038A (en) Secure electric anti-theft device, anti-theft system comprising one such device and method of matching electric devices.
CN110310406A (en) A kind of method for unlocking and intelligent door lock of intelligent door lock
CN109147109A (en) Lockset, mobile terminal, lockset control method and Lock control system
CN108288315A (en) A kind of smart lock control system, open method and storage medium
TWI638081B (en) Remote control electronic lock system and encrypting/decrypting method
CN1877060B (en) Digital cipher lock with secure secondary authorization unlocking function
CN110298947B (en) Unlocking method and electronic lock
TWM513256U (en) Operating control system using mobile device
CN106761014B (en) A kind of intelligence electromechanical double-control electronic lock
JP2013209821A (en) Electric lock system
CN107091019B (en) A kind of method, apparatus of more lock body smart locks
TW201623762A (en) Multiple regulation electronic lock control system and method of wirelessly transmitting keys
KR101218707B1 (en) Doorlock and control method of it
TWI542770B (en) NFC lock system and lock device
TW201329327A (en) Multi-protection security electronic lock
KR100515688B1 (en) Method for controlling digital door-lock
JP2012203438A (en) Ten-key system

Legal Events

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