<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amazing-Grace Olutomilayo on Medium]]></title>
        <description><![CDATA[Stories by Amazing-Grace Olutomilayo on Medium]]></description>
        <link>https://medium.com/@olutomilayodolapo?source=rss-f6b83bfc64a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FOTSdJvhFTWGeg8z7qRQTw.jpeg</url>
            <title>Stories by Amazing-Grace Olutomilayo on Medium</title>
            <link>https://medium.com/@olutomilayodolapo?source=rss-f6b83bfc64a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:24:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olutomilayodolapo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to retrieve OTP from Authy, Google Authenticator with Python]]></title>
            <link>https://medium.com/@olutomilayodolapo/how-to-retrieve-otp-from-authy-google-authenticator-with-python-53544575bcef?source=rss-f6b83bfc64a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/53544575bcef</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-authenticator]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[authy]]></category>
            <category><![CDATA[one-time-password]]></category>
            <dc:creator><![CDATA[Amazing-Grace Olutomilayo]]></dc:creator>
            <pubDate>Thu, 08 Jun 2023 11:23:25 GMT</pubDate>
            <atom:updated>2023-06-08T11:23:25.556Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rlCuvo3a2hX5NOGZ" /><figcaption>Photo by <a href="https://unsplash.com/ko/@nhillier?utm_source=medium&amp;utm_medium=referral">Nick Hillier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Since you’re here, I’m going to assume that you use some kind of automated system that asks for your One-Time-Password before allowing you to access a specific service. If there is still some sort of human involvement, then there is no “true automation”. By including automated OTP verification in your automation, this article helps you claim the “true automation” title for your project (if you only have an OTP problem 👀).</p><blockquote>Disclaimer: This post may or may not prepare you for the next step in claiming true automation if problems arise outside of the realm of OTP-related content🧙🏾‍♂️</blockquote><p>Programming Language: Python<br>Package: PyOTP<br>Authenticator apps: Authy, Google Authenticator<br>Miscellanous app: QRbot (iOS, Android)</p><p><strong>Concept of OTPs</strong></p><p>One-Time Passwords (OTPs) are temporary passwords that are valid for a single login session or transaction. They provide an additional layer of security by requiring users to provide not only a static password, but also a dynamic OTP to authenticate their identity. OTPs are typically time-based or event-based and are generated using specific algorithms.</p><p>OTP generation involves a combination of a secret key, a counter, and a cryptographic algorithm (usually event-based).</p><p>There are 2 major standards to 2FAs:<br>- HOTP: HMAC-Based One-Time Password Algorithm<br>- TOTP: Time-Based One-Time Password Algorithm</p><p>The choice between the two depends on the specific requirements of the application and the OTP provider.</p><p>The focus of this article would be on the TOTP standard of 2FA. TOTP is widely used and supported by authentication apps like Google Authenticator and Authy.</p><p><strong>Setting Up Python Environment</strong></p><p>To retrieve OTPs from Google Authenticator and Authy using Python, you’ll need to install the PyOTP package. Make sure you have Python installed on your system before proceeding.</p><blockquote>PyOTP is a Python library for generating and verifying one-time passwords. It can be used to implement two-factor (2FA) or multi-factor (MFA) authentication methods in web applications and in other systems that require users to log in.</blockquote><p>Open a terminal or command prompt and execute the following command to install the necessary libraries:</p><pre>pip install pyotp</pre><p>Before we using our package, we need the provisioning uri associated with the OTP. There are 2 possible ways to get that:</p><p>1. By using the <em>pyotp.totp.TOTP</em> method. This requires your application/service’s secret key, your account mail and issuer name.</p><pre>import pyotp<br><br># pyotp.totp.TOTP(&#39;secret_key&#39;).provisioning_uri(name=&#39;your_account&#39;, issuer_name=&#39;service name&#39;)<br>pyotp.totp.TOTP(&#39;JBSWY3DPEHPK3PXP&#39;).provisioning_uri(name=&#39;alice@google.com&#39;, issuer_name=&#39;Secure App&#39;)</pre><p>This returns the provisioning URIs associated with the OTP.</p><pre>&gt;&gt;&gt; &#39;otpauth://totp/Secure%20App:alice%40google.com?secret=JBSWY3DPEHPK3PXP&amp;issuer=Secure%20App&#39;</pre><p>2. Another possible way of getting the provisioning uri is by scanning the QR code with the QRbot (iOS) or any equivalent app to get the uri.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FldE2rIdiwE4md71I1w%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExYzk1NjViOTFjODA3NTFhYjVmZWFmYWNhZDA2NWExNzNkZTExYjkwNyZlcD12MV9pbnRlcm5hbF9naWZzX2dpZklkJmN0PWc%2FldE2rIdiwE4md71I1w%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FldE2rIdiwE4md71I1w%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="558" frameborder="0" scrolling="no"><a href="https://medium.com/media/519d2ba591e85bb7ce189ea94e03893d/href">https://medium.com/media/519d2ba591e85bb7ce189ea94e03893d/href</a></iframe><p>After the uri is extracted, we can pass the uri to the parse_uri method of the pyotp package.</p><pre>import pyotp<br><br>x = pyotp.parse_uri(&#39;otpauth://totp/Secure%20App:alice%40google.com?secret=JBSWY3DPEHPK3PXP&amp;issuer=Secure%20App&#39;)<br>print(x.now())</pre><pre>&gt;&gt;&gt; 752277</pre><p>You can also get the secret key, number of digits in the OTP key, issuer, etc.</p><pre>print(&quot;Secret: &quot;, x.secret)<br>print(&quot;Issuer: &quot;, x.issuer)<br>print(&quot;Digits: &quot;, x.digits)<br><br><br>&gt;&gt;&gt; Secret:  JBSWY3DPEHPK3PXP<br>&gt;&gt;&gt; Issuer:  Secure App<br>&gt;&gt;&gt; Digits:  6</pre><p><strong>Debugging</strong></p><p>There could be a potential problem of OTPs mismatch (where OTP in your authenticator and the OTP from your script is different). This can be solved by synchronising the time on your devices or virtual machine (let the vm time match the time on your device).</p><p><strong>Conclusion</strong></p><p>In this article, we have been able to explore the process of retrieving OTPs from Google Authenticator and Authy using Python.</p><p>OTPs provide an additional layer of security in the authentication process, ensuring that only authorized users can access sensitive information or perform critical actions. By understanding the underlying concepts of OTP generation and leveraging the power of Python, we can programmatically retrieve OTPs for various authentication/automation scenarios.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53544575bcef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Practices You Need To Know As a Data Scientist]]></title>
            <link>https://medium.com/aiplusoau/best-practices-you-need-to-know-as-a-data-scientist-74669d47b720?source=rss-f6b83bfc64a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/74669d47b720</guid>
            <category><![CDATA[right-tools]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[actionable-insights]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Amazing-Grace Olutomilayo]]></dc:creator>
            <pubDate>Wed, 20 Jan 2021 11:20:28 GMT</pubDate>
            <atom:updated>2021-01-20T12:41:55.087Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="&lt;span&gt;Photo by &lt;a href=”https://unsplash.com/@glencarrie?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCo" src="https://cdn-images-1.medium.com/proxy/1*XIHHzFuJl1yX4Eo5_j8FUg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@glencarrie?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Glen Carrie</a> on <a href="https://unsplash.com/s/photos/think?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>As a Data Scientist or Machine Learning Engineer, there are necessary techniques, and mindset to inculcate and put in place to ensure you make headways in your projects or workplace. Most Data Science projects are more experimental and not as well-defined as software development projects, following some good coding principles help increase efficiency and scale-up data science projects.</p><p>Data Science being an interdisciplinary field that uses different scientific methods, processes, algorithms, and systems so as to extract knowledge and insights from many structural and unstructured data requires extensive knowledge on how to go about its projects.</p><p>To have an easy workaround on your projects or at your workplace, here are some best practices to note:</p><h4><strong>Research on your data</strong></h4><p>A data scientist’s job is to collect large sets of structured and unstructured data from disparate sources, analyze data for actionable insights by determining the correct data sets and variables, interpreting the data to discover solutions and opportunities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rXejhcKLorK7JiXnQH-tg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@homajob?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Scott Graham</a> on <a href="https://unsplash.com/s/photos/research?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Data Scientists should spend the initial phase of a project understanding what data is available and whether the information contained in it is sufficient to answer the business question that has been defined. Oftentimes, the underlying data is not initially in the right format or contains errors or anomalies that need to be cleaned up before the data can be used.</p><h4><strong>Use the right tools</strong></h4><p>It will be necessary to ask questions and consider your project or organization’s business needs and also learning who will be using your analytics tool. Will it be used by sophisticated Data Analysts/Scientists, by nontechnical users who need an intuitive interface, or should it suit both kinds of users?</p><p>There are a tremendous variety of analytics tools to choose from to support Data Scientists. Be sure that your suite of data science tools can handle an ever-increasing velocity and complexity of data so your team is empowered to work more efficiently and effectively. Choosing the right data analytics tool is challenging, as no tool fits every need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVPRxqz2VUuY7NGXSXzmtw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kmuza?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Carlos Muza</a> on <a href="https://unsplash.com/s/photos/computer?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4><strong>Test and validate often</strong></h4><p>One common mistake that data scientists, especially beginners, make is not writing unit tests. Data Scientists sometimes argue that unit testing is not applicable because there is no correct answer to a model that can be known ahead of time or to test with. However, most data science projects start with data transformation. While you cannot test model output, at least you should test that inputs are correct. Compared to the time you invest in writing unit tests, good pieces of simple tests will save you much more time later, especially when working on large projects or big data.</p><p>It’s important to test and validate models and results on a regular basis. That’s because the underlying trends that were once important assumptions of a model could change suddenly due to external factors, rendering previous results invalid. Your collaborators/team needs to be ready to iterate on models to ensure they stay relevant in your evolving business.</p><h4><strong>Insights To Better Decisions</strong></h4><p>A solid understanding of what’s not working will inform the direction of transition better. Data scientists build really important things. They go about it in a very deliberate way and they employ reason, theory, and evidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zD1lJcoib1Sf_mXHSWbPJQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@hostreviews?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Stephen Phillips</a> on <a href="https://unsplash.com/s/photos/insights?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Data gives a unique setting to interact with many different functions of a business/project. As a result, you mostly have to be more in the center and that means you get to understand what lots of different functions are, what each data point tells you, how you can interact with them.</p><p>Don’t just have technical skills, be able to extract actionable insights.</p><p>Finally, Data scientists being analytical experts who utilize their skills in both technology and social science to find trends and manage data. They use industry knowledge, contextual understanding, skepticism of existing assumptions — to uncover solutions to business challenges. To pull these off, best practices and techniques have to be set in place.</p><p><em>Editor’s Note: </em><a href="https://twitter.com/AIplus_OAU"><em>AIPlusOAU</em></a><em> is a subsidiary of </em><a href="https://www.datasciencenigeria.org/"><em>Data Science Nigeria</em></a><em> based in Obafemi Awolowo University, Ile-Ife, Osun State. Our aim is to raise a community of Data Scientists, Machine Learning/AI Engineers, and Researchers. We are dedicated to supporting young talents to start and grow their Data Science skills.</em></p><p><em>Do follow AIplusOAU on</em><a href="https://twitter.com/AIplus_OAU"><em> </em><strong><em>Twitter</em></strong></a><em> for emerging trends in Data Science, Machine Learning, and AI.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74669d47b720" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiplusoau/best-practices-you-need-to-know-as-a-data-scientist-74669d47b720">Best Practices You Need To Know As a Data Scientist</a> was originally published in <a href="https://medium.com/aiplusoau">AI+Club OAU</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>