페이지

2024년 4월 27일 토요일

JSON WEB TOKEN STRUCTURE

 A JSON Web Token is created of three separate parts separated by dots(.) which include:

aaaaaaaa.bbbbbbbb.cccccccc

- Header: (a)

- Payload: (b)

- Signature: (c)


1) JWT HEADER

- A JWT header usually consist of two parts:

  (alg) The alorithm for signing

  "typ" The specific type of token

{

    "alg": "HS256",

    "typ": "JWT"

}

- The JWT header is then encoded using Base64 to create the first part of the JWT (a)


2) JWT PAYLOAD

- A JWT Payload consists of the data. The Payloads data contains claims, and there are three different types of claims.

  Registered

  Public

  Private

{

   "sub": "1334567890",

   "name": "gildong hong",

   "last_name": "gildong",

   "first_name": "hong",

   "email": "abc@zyx.com"

   "admin": true

}


- The JWT Payload is then encoded using Base64 to create the second part of the JWT(b)


3) JWT SIGNATURE

- A JWT Signature is created by using the algorithm in the header to hash out the encoded header, encoded payload with a secret.

HMACSHA256(

    base64UrlEncode(header) + "." +

    base64UrlEncode(payload),

    secret)


- The secret can be anything, but is saved somewhere on the server that the client does not have access to


- The signature is the third and final part of a JWT(c)







JSON WEB TOKEN(JWT) OVERVIEW

 JWT is one of the most popular bear tokens in authorization protocols within APIs.


1. What is a JSON WEB TOKEN?

- JSON Web Token is a self-contrainer way to securely transmit data and information between two parties using a JSON Object.

- JSON Web Tokens can be trusted because each JWT can be digitally signed, which in return allows the server to know if the JWT has been changed at all

- JWT should be used when dealing with authorization

- JWT is a great way for information to be exchanged between the server and client





2024년 1월 27일 토요일

downlaod

 https://bootstrap.pypa.io/get-pip.py


macos, linux

pyhton get-pip.py

py get-pip.py



pip install --upgrade virtualenv

python -m venv ./venv

 pip install openai


2023년 10월 20일 금요일

2023년 9월 9일 토요일

flutter

 flutter run -d all

2023년 8월 19일 토요일

 

brew install node

sudo npm i -g npm

sudo npm install -g appium

sudo npm install wd


sudo appium


sudo npm install wd



sudo appium driver list


sudo appium driver install uiautomator2






2023년 8월 5일 토요일

Appium - Mobile Testing (Android/IOS) from Scratch + Frameworks

 1. What is Appium?

Applum is open-Source Mobile Automation tool for testing native Apps(Android & IOS) and mobile browsers

Applum Inernally uses WebDriver json wire(Which Selenium does)to test the Apps. so,  it is just like Selenium but for mobile


APPIUM:

Open source Mobile Automation tool.

The only Cross-platform test supporting tool

Works for native, hybrid and boile web apps.

Supports Web driver APU - Selenium Family!


Supported Platforms

- iOS

- Android

- Firefox OS


You can write the code in any language Supported by Webdriver:


Java, C#, Javascript, Python, Ruby.















2. Step by Step Instructions for Appoium Configuration in Windows/MAC


Download Java