SlideShare ist ein Scribd-Unternehmen logo
1 von 32
One time password
Mahdi Ataeyan
Website: www.ataeyan.com
Twitter: @kalpase
Please feel free to interrupt 
me if you have questions!
 Methods for authenticating people
● What you know (password)
● what you have (smart card)
● what you are (biometric sensors)
● Cracked
● Stolen
● Guessed
● Lost
● difficult to manage or unmanageable
static password
What is otp?
Why?
● Cracked
● Stolen
● Guessed
● Lost
● manageable
bottleneck
Methods of generating the OTP
● Time­synchronized 
● Mathematical algorithms
➢ based on the previous password
➢ based on a challenge
in other word
● Time­based authentication
● Event­based authentication
● Challenge­response­based  authentication
based on the previous password
● s = seed
● f(s) = hash function
● f(f(f( .... f(s) .…)))
● f1000
(s) is stored on the target system
● p = f999
(s)      # user's first login password
● f(p) = f1000
(s) #server can authenticate password
● The value stored in target replaced by p.
●  p = f998
(s)    #next login
● f(p) = f999
(s) #server can authenticate password
based on a challenge
● non­cryptographic protocols
➢Password
➢CAPTCHAs
➢copy protection challenges.
• Cryptographic techniques
➢Message authentication code
Challenge–response authentication
●     Server sends a unique challenge value sc to the client
●     Client generates unique challenge value cc
●     Client computes cr = hash(cc + sc + secret)
●     Client sends cr and cc to the server
●     Server calculates the expected value of cr and ensures the client 
responded correctly
●     Server computes sr = hash(sc + cc + secret)
●     Server sends sr
●     Client calculates the expected value of sr and ensures the server 
responded correctly
Examples of  challenge­response 
algorithms
● zero­knowledge password proof and key agreement systems 
(such as Secure Remote Password (SRP))
● Challenge­Handshake Authentication Protocol (CHAP)
● OCRA ­ OATH Challenge­Response Algorithm
● Salted Challenge Response Authentication Mechanism 
(SCRAM)
● ssh's challenge­response system based on RSA
Message authentication code
● hash function
➢ MD5      #HMAC­MD5 
➢ SHA­1   #HMAC­SHA1
● IPsec and TLS protocols are used HMAC­SHA1 
and HMAC­MD5.
Hash­based message 
authentication code
● H is a cryptographic hash function,
● K is a secret key padded to the right with extra zeroes to the 
input block size of the hash function, or the hash of the 
original key if it is longer than that block size,
● m is the message
●     opad is the outer padding (0x5c5c5c…5c5c, one­block­
long hexadecimal constant),
●     and ipad is the inner padding (0x363636…3636, one­
block­long hexadecimal constant). 
HMAC­based One­time Password 
Algorithm
● HOTP­Value = HOTP(K,C) mod 10d   
#number of digits
● HOTP(K,C) = Truncate(HMAC(K,C)) & 0x7FFFFFFF
● HMAC(K,C) = SHA1(K   0x5c5c…   SHA1(K   0x3636…   C))⊕ ∥ ⊕ ∥
● K =  secret key
● C =  counter
● Truncate = a function that selects 4 bytes from the result of the 
HMAC in a defined manner.
Time­based One­time Password 
Algorithm
● TC = (unixtime(now) ­ unixtime(T0)) / TS
– T0 = start of an epochand 
– TS = counting in units of a time step
● TOTP = HOTP(SecretKey, TC)
● TOTP­Value = TOTP mod 10d #
d = number of 
digits
Methods of delivering
● Text messaging
● Mobile phones
● Proprietary tokens
● Web­based methods
● Hardcopy
Text messaging
Mobile phones
Proprietary tokens
Web­based methods
Hardcopy (TAN)
Transaction authentication number 
(TAN)
● Classic TAN
● Indexed TAN (iTAN)
● Indexed TAN with CAPTCHA (iTANplus)
● Mobile TAN (mTAN)
● pushTAN
Two­factor authentication
Multi­factor authentication
Authentication­as­a­service
● Automates everything
● Protects everything
● Protects everyone
● Easy migration
● Saves money
One Time Password

Weitere ähnliche Inhalte

Mehr von mahdi ataeyan

دفترکل توزیع شده
دفترکل توزیع شدهدفترکل توزیع شده
دفترکل توزیع شدهmahdi ataeyan
 
high availability And File hosting service (OwnCloud)
high availability And File hosting service (OwnCloud)high availability And File hosting service (OwnCloud)
high availability And File hosting service (OwnCloud)mahdi ataeyan
 
Onion network architecture
Onion network architectureOnion network architecture
Onion network architecturemahdi ataeyan
 

Mehr von mahdi ataeyan (7)

دفترکل توزیع شده
دفترکل توزیع شدهدفترکل توزیع شده
دفترکل توزیع شده
 
Blockchanes
BlockchanesBlockchanes
Blockchanes
 
Yacy search engine
Yacy search engineYacy search engine
Yacy search engine
 
high availability And File hosting service (OwnCloud)
high availability And File hosting service (OwnCloud)high availability And File hosting service (OwnCloud)
high availability And File hosting service (OwnCloud)
 
Xmpp
XmppXmpp
Xmpp
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Onion network architecture
Onion network architectureOnion network architecture
Onion network architecture
 

Kürzlich hochgeladen

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 

Kürzlich hochgeladen (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

One Time Password

Hinweis der Redaktion

  1. hash chain S/KEY
  2. sc is the server generated challenge cc is the client generated challenge cr is the client response sr is the server response
  3. a short piece of information used to authenticate a message To provide integrity and authenticity assurances on the message
  4. The mask sets the most significant bit to 0, to prevent the number from being interpreted as negative. This guards against different implementations of the modulo operation by processors.[2]
  5. What you know => user name and password What you have => one time password token
  6. What you know => user name and password What you have => one time password token What you are