Skip to main content

Posts

India Culture

Quiz on culture of India Konark Dance Festival held in which of the following state Gujarat Rajasthan Odisha Maharashtra Hornbill Festival held in which of the following state Nagaland Rajasthan Gujrat Punjab Bharatanatyam is a classical dance that originated in which of the following state Tamil Nadu Kerala Karnataka Andhra Pradesh Rajasthan Sattriya is a principal classical Indian dance traditions of which of the following state Assam Gujrat Kerala Bihar   Odissi is a major ancient Indian classical dance that originated in which of the following state Odisha Gujrat Maharashtra Punjab Answer: 1:  3,  2: 1,  3: 1,  4: 1,  5:  1  Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. Rozgardesh (रोजगार देश)

MSG.AI Interview Experience

MSG.AI Interview Experience Recently, I was interviewed for the backend developer at  MSG.AI  Gurgaon. There was only one face to face round interview. Company Details Company Name:  MSG.AI Location:              Gurgaon Experience:          Fresher Designation:        Software Developer (Backend) Website:               MSG.AI MSG.AI Interview experience Round 1 A child going up a staircase with n steps, can hop up 1, 2, or 3 steps at a time. How many ways can the child reach the top? Clone a Directed Acyclic Graph Internal implementation of regular expression Question on Resume/Project Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. Rozgardesh (रोजगार देश)

EC Public Key

EC Public Key In this post, we will learn how to get EC curve co-ordinate (X, Y) from uncompressed EC public key. If EC public certificate is in form of PEM certificate convert it into hex string. If converted hex hex string is starting with 04 it means uncompressed EC public key and if starting with 02 or 03 then it compressed EC public certificate. Uncompressed EC public key hex, here 04 indicated it's uncompressed. Remove 04 and divide rest part in equal half and first half will be X co-ordinate and other half will be Y co-ordinate. 04 04 ce 24 34 d4 cb f2 58 94 2f 8a 5f 06 d7 3f ed 5a 50 ef fb cc b7 49 62 16 62 9e aa d5 30 a8 a5 X: 04ce2434d4cbf258942f8a5f06d73fed Y: 5a50effbccb7496216629eaad530a8a5 Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. Rozgardesh (रोजगार देश)

1MG Interview experience

1MG Interview Experience Recently, I was interviewed for the backend developer at 1Mg Gurgaon. There were one coding round on hackerearth and four face to face round interview. Company Details Company Name: 1MG Location:              Gurgaon Experience:          Fresher Designation:        Software Developer (Backend) Website:               1MG 1MG Interview Experience Round 1 Reverse the given linked list Search an element in sorted array Search element in a sorted matrix Given an array of integer finds frequency of its elements. Quick Sort algorithm Hashing internal implementation Check weather a list is palindrome or not Round 2 Give a number N >= 1 you can do two operations with it. if N is even, You can divide it by 2 i.e N = N/2. if N is odd, You can either add or subtract 1 to the number. Find minimum numbers of operat...

Convert PEM file to DER

Convert PEM file to DER Python In this post , we will learn correct way to convert PEM file or PEM SSL certificate into DER using python OpenSSL module. Below code using python OpenSSL library to load PEM certificate and converting it into DER format. If you do not have PEM SSL certificate, for test purpose you can copy SSL/TLS certificate from here . import OpenSSL # load certificate keyfile = open("/path/to/cert.pem", "r") # read certificate cert_file = keyfile.read() # load certificate buffer cert_pem = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, cert_file) # dump pem certificate into der cert_der = OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_ASN1,cert_pem) # print der certificate print (cert_der) Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. Rozgardesh ( रोजगार देश )

BSNL Recruitment

BSNL Recruitment      Bharat Sanchar Nigam Limited (BSNL)  has released a notification for the post of   Management Trainees . Company Name BSNL Post Name    Management Trainees State India Salary Rs.  24,900-50,500 Number of Vacancy 300 Eligibility B.Tech Last Date 26-01-2019 Application Details Job Notification Apply Online Job Application BSNL Recruitment       Government Jobs in India Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. Rozgardesh ( रोजगार देश )

Socket in Python

Socket Python In this post, We learn how to create socket in python programming language. Socket is one endpoint of the two-way communication link between two program running on a network. import socket host = "example.org" port = 80 # Create socket # AF_INET address family # SOCK_STREAM connection protocol socket_object = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # connect to host socket_object.connect((host, port)) # Get peer address socket_object.getpeername() # Get own address socket_object.getsockname() # send data socket_object.sendall('Hello, world') # receive data data = socket_object.recv(1024) # close connection socket_object.close() print 'Received', repr(data) Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Python ASN1 Parsing

Python ASN1 Parse In this post, we will learn how to parse certificate or pem encoded certificate in ASN1 format in python programming language. To parse certificate in ASN1 we will use python module pyasn1. If you do not have SSL/TSL certificate you can copy certificate form here  and save it in cert.pem file. # import required module from pyasn1_modules import pem, rfc2459 from pyasn1.codec.der import decoder # read pem TLS/SSL certificate substrate = pem.readPemFromFile(open('cert.pem')) # decode certificate in ASN1 cert = decoder.decode(substrate, asn1Spec=rfc2459.Certificate())[0] # pretty print ASN1 decoded certificate print(cert.prettyPrint()) Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

ONGC Recruitment

ONGC Recruitment      Oil and Natural Gas(ONGC) has released a notification for the post of   Non executive  for Mumbai and Goa location. Company Name ONGC Post Name    None executive State Mumbai/Goa Salary Rs.  30000 Number of Vacancy 422 Eligibility Class X-Graduation Last Date 01-01-2019 Application Details Job Notification Apply Online Job Application ONGC Recruitment       Government Jobs in Maharashtra Government Jobs in Goa Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

OpenSSL command to parse certificate

OpenSSL command to parse certificate In this post, we will learn about openSSL command that used to parse pem certificate on Ubuntu operating system. Save below SSL certificate in a file with name cert.pem -----BEGIN CERTIFICATE----- MIIHxzCCBq+gAwIBAgIIVQ0A1nm/F3swDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE BhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczElMCMGA1UEAxMc R29vZ2xlIEludGVybmV0IEF1dGhvcml0eSBHMzAeFw0xODExMjcxNDAyMDBaFw0x OTAyMTkxNDAyMDBaMGYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKDApHb29nbGUgTExDMRUw EwYDVQQDDAwqLmdvb2dsZS5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQh 4dvV+L1osQ7c2x8LgsuHE09NqB4H7nO5MmSul1Bda56d6C7IrqBumitdrYm0ybWR WtTjpYA9cYeH1w/EmBECo4IFVDCCBVAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDgYD VR0PAQH/BAQDAgeAMIIEGQYDVR0RBIIEEDCCBAyCDCouZ29vZ2xlLmNvbYINKi5h bmRyb2lkLmNvbYIWKi5hcHBlbmdpbmUuZ29vZ2xlLmNvbYISKi5jbG91ZC5nb29n bGUuY29tggYqLmcuY2+CDiouZ2NwLmd2dDIuY29tggoqLmdncGh0LmNughYqLmdv b2d...