Skip to content

Storing data in .txt file and retrieving it

I was trying to make some sort of login system, I have it so that if a username and password are in test.txt (there is multiple ones) it should let you login, I haven’t even passed the step of verifying if the username and password are in the txt file and its destroying me, I don’t know how to do

AES encrypt in python decrypt in php

I am asking this because I don’t really know php but must to somehow manage with. I have encrypted data in python and need to decrypt in php (serversite). python encryption: this gives ‘rtVabOaDdf528T63xOhhww’ output, which is correctly AES encrypted. and php which encrypts and decrypts in o…

How to find pid of a process by Python?

friends: I am running a script in Linux: I can use the ps command get the process. but, how can I know the pid of the running script by given key word python test09.py& using python code? EDIT-01 I mean, I want to use the python script to find the running script python test09.py&’s pid. EDIT-02 …

OneHotEncoding Protein Sequences

I have an original dataframe of sequences listed below and am trying to use one-hot encoding and then store these in a new dataframe, I am trying to do it with the following code but am not able to store because I get the following output afterwards: Code: but get error Answer You get that strange array becau…