{"id":265716,"date":"2023-08-04T17:09:34","date_gmt":"2023-08-04T14:09:34","guid":{"rendered":"https:\/\/shop.thekernel.ua\/otp-passwords-on-yubikey-how-it-works"},"modified":"2023-08-04T17:31:34","modified_gmt":"2023-08-04T14:31:34","slug":"otp-passwords-on-yubikey-how-it-works","status":"publish","type":"post","link":"https:\/\/shop.thekernel.ua\/en\/otp-passwords-on-yubikey-how-it-works","title":{"rendered":"OTP passwords on YubiKey \u2014 how it works"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.21.2&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;16px&#8221; global_colors_info=&#8221;{}&#8221;]<span style=\"font-weight: 400;\">OTP passwords are one-time passwords (the origin of OTP is from English one time password) that are used for one authentication session. Their effect is usually limited by time. You may have received such codes by phone or mail when trying to access online banking or when setting up two-factor authentication using the Google Authenticator app. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Unlike a static password, a one-time password provides greater security \u2014 if an attacker even intercepts it, he may not have time to use it. OTP-passwords are created thanks to the algorithm of random numbers, so the fraudster will not be able to guess which sequence will occur next time. And this is also an advantage of OTP passwords. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Of course, the longer the password, on the one hand, it is more difficult for an attacker to pick it up, but also, on the other hand, it is more difficult for an ordinary user to remember and enter the password manually in time. So in this matter, technology comes to the aid of a person. The YubiKey is one of the most effective, so let&#8217;s take a look at how it works.<\/span><\/p>\n<h2><b>How OTP passwords work with YubiKey<\/b><\/h2>\n<p><a href=\"https:\/\/shop.thekernel.ua\/en\/online-store#yubi-5\"><span style=\"font-weight: 400;\">YubiKey 5<\/span><\/a> <span style=\"font-weight: 400;\">and<\/span> <a href=\"https:\/\/shop.thekernel.ua\/en\/online-store#yubi-fips\"><span style=\"font-weight: 400;\">YubiKey FIPS<\/span><\/a> <span style=\"font-weight: 400;\">security key series<\/span> <span style=\"font-weight: 400;\">support several OTP protocols, these are:<\/span><\/p>\n<p><b>Yubico OTP<\/b><span style=\"font-weight: 400;\"> \u2014 128-bit password consisting of 44 characters; 12 of them are immutable, they serve as an identifier for the YubiKey device itself. Such a password is almost impossible to forge. <\/span><i><span style=\"font-weight: 400;\">Below is an example of such a password, called three times.<\/span><\/i><\/p>\n<table>\n<tbody>\n<tr>\n<td><code><b>cccjgjgkhcbb<\/b><span style=\"font-weight: 400;\">irdrfdnlnghhfgrtnnlgedjlftrbdeut<\/code><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><code><b>cccjgjgkhcbb<\/b><span style=\"font-weight: 400;\">gefdkbbditfjrlniggevfhenublfnrev<\/code><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><code><b>cccjgjgkhcbb<\/b><span style=\"font-weight: 400;\">cvchfkfhiiuunbtnvgihdfiktncvlhck<\/code><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><i><span style=\"font-weight: 400;\"> <\/span><\/i><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>OATH-HOTP and OATH-TOTP<\/b><span style=\"font-weight: 400;\"> are 6-8 digit one-time passwords that change within 30 seconds. In TOTP codes, the code is generated using a hash<\/span><i><span style=\"font-weight: 400;\"> HMAC(sharedSecret, timestamp)<\/span><\/i><span style=\"font-weight: 400;\">, where the timestamp changes every 30 seconds. The shared secret is often provided as a QR code or pre-programmed into a hardware token. And HOTP codes use an authentication counter instead of a time stamp. So when setting up this feature, it&#8217;s important to make sure the timer on the device is set to the correct time. <\/span><\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/shop.thekernel.ua\/wp-content\/uploads\/2023\/08\/image1.png&#8221; alt=&#8221;image1&#8243; title_text=&#8221;image1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.21.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.21.2&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;16px&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\">\n<h3><b>Benefits of using OTP on YubiKey<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Secrets always remain on YubiKeys. It is impossible to read information from them. And from the phone or computer, in case of hacking and launching of spy software, information can be read. <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The keys do not require recharging, unlike the phone, which is very often used for two-factor authentication. So even if you forget to recharge, you can access your accounts anywhere using hardware devices.<\/span><\/li>\n<\/ul>\n<h3><b>OTRs caused by touch on the computer<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">If you configure the OTP password function on the YubiKey so that it is triggered by touch, the authorization process will look like this:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">at the request of the server, you need to insert the key into the USB socket;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">place the mouse cursor in the text field;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">touch the golden metal part and the key will automatically transmit the OTP password.<\/span><\/li>\n<\/ul>\n<h3><b>OTRs caused by touch on a mobile device<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Since the mobile device has an NFC function, the authentication process is a little different \u2013 you need to bring the key to the back of the phone, touch the screen where the password should be entered. Also, the key can be connected to a mobile device using the appropriate interface: USB-C or Lightning.<\/span><\/p>\n<h2><b>How to configure OATH-HOTP and OATH-TOTP<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">You can configure the one-time password function on the YubiKey in two ways:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">set to call by touching OTP-passwords using the<\/span> <a href=\"https:\/\/shop.thekernel.ua\/en\/yubikey-manager\"><span style=\"font-weight: 400;\">YubiKey Manager<\/span><\/a> <span style=\"font-weight: 400;\">(recommended) or CLI tools (for this, appropriate developer experience is required);<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">using the<\/span> <a href=\"https:\/\/shop.thekernel.ua\/en\/yubico-authenticator\"><span style=\"font-weight: 400;\">Yubico authenticator app<\/span><\/a> <span style=\"font-weight: 400;\">(<\/span><a href=\"https:\/\/shop.thekernel.ua\/en\/yubico-authenticator-user-guide\"><span style=\"font-weight: 400;\">instructions<\/span><\/a><span style=\"font-weight: 400;\">).<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Thanks to an intuitive interface, you can quickly configure the relevant features and use the hardware devices to their fullest extent to increase the security of your accounts and protect against phishing. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you don&#8217;t know which YubiKey will best suit your needs, we recommend taking <a href=\"https:\/\/shop.thekernel.ua\/en\/find-the-right-yubikey\">a quick test<\/a>. <\/span><\/p>\n<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_button button_url=&#8221;https:\/\/shop.thekernel.ua\/en\/find-the-right-yubikey&#8221; button_text=&#8221;Pick up the YubiKey&#8221; button_alignment=&#8221;center&#8221; _builder_version=&#8221;4.21.2&#8243; _module_preset=&#8221;default&#8221; custom_button=&#8221;on&#8221; button_text_size=&#8221;16px&#8221; button_bg_use_color_gradient=&#8221;on&#8221; button_border_width=&#8221;4px&#8221; button_border_radius=&#8221;83px&#8221; button_letter_spacing=&#8221;1px&#8221; custom_padding=&#8221;1%|3%|1%|3%|true|true&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_button][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;RGBA(255,255,255,0)&#8221; use_background_color_gradient=&#8221;on&#8221; background_enable_mask_style=&#8221;on&#8221; background_mask_style=&#8221;honeycomb&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2 style=\"text-align: center;\">Similar materials in the Knowledge Base<\/h2>\n<p>[\/et_pb_text][et_pb_blog fullwidth=&#8221;off&#8221; posts_number=&#8221;3&#8243; include_categories=&#8221;399&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_blog][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OTP passwords are one-time passwords (the origin of OTP is from English one time password) that are used for one authentication session. Their effect is usually limited by time. You may have received such codes by phone or mail when trying to access online banking or when setting up two-factor authentication using the Google Authenticator [&hellip;]<\/p>\n","protected":false},"author":55,"featured_media":265722,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"OTP passwords on YubiKey \u2013 how it works | Knowledge base","_seopress_titles_desc":"The YubiKey 5 and YubiKey FIPS security key series support multiple OTP protocols, these are:\r\nYubico OTP, OATH-HOTP and OATH-TOTP.\r\n","_seopress_robots_index":"","_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[402,439],"tags":[],"class_list":["post-265716","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-settings","category-settings-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/posts\/265716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/comments?post=265716"}],"version-history":[{"count":2,"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/posts\/265716\/revisions"}],"predecessor-version":[{"id":265718,"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/posts\/265716\/revisions\/265718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/media\/265722"}],"wp:attachment":[{"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/media?parent=265716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/categories?post=265716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shop.thekernel.ua\/en\/wp-json\/wp\/v2\/tags?post=265716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}