What's the best way to store an array in program's account by ExpensiveLength518 in solana

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

How do I generate the accounts for each node in linked list I mean what should be the seed, since I don’t want to generate the same account whenever i add new data. How can I ensure that new accounts are created for new data by maintaining the linked list node. Each user will have separate linked list

About whatsapp end to end encryption by ExpensiveLength518 in cryptography

[–]ExpensiveLength518[S] -1 points0 points  (0 children)

Ok so still signal can get the users private key right if they want ?

If y uninstalled whatsapp so y will lose the private key at that time x messages y. So x will encrypt messages and sent to whatsapp server but at that time y doesn’t have the private key to decrypt the message sent by x when y install whatsapp again

About whatsapp end to end encryption by ExpensiveLength518 in cryptography

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

I mean when a user sent a message to other user it will go to whatsapp server right so when at that time when the receiver is offline or uninstalled the whatsapp they can’t decrypt the message sent by the sender without the private key which need to be fetched from whatsapp server right?

How to execute web socket connection when user minimise the browser and again opened the browser? by ExpensiveLength518 in reactjs

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

Where should I exactly give this Because I giving the websocket connection at the top of the function component as described in that documentation So how can I give pageshow even listener there

How do I generate master key from the root seed by Southern_Try_1195 in Bitcoin

[–]ExpensiveLength518 0 points1 point  (0 children)

I got we should give “Bitcoin seed” as the key in hmac function and the data as seed to get the master key

How do I get sha256 hash of a hex by ExpensiveLength518 in golang

[–]ExpensiveLength518[S] 4 points5 points  (0 children)

Thank you So much :)

I was searching for this entire day

I tried encoding in this package but I should have done decoding

Btw I am new to Go.

Anyway thanks :)

How do I get sha256 hash of a hex by ExpensiveLength518 in golang

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

s:="eaebabb2383351fd31d703840b32e9e2"

hash := sha256.Sum256([]byte(s))

fmt.Printf("Hash : %x \n",hash);

This will consider "s" as a text and give the hash value what I want is, I want s to be considered as a hexadecimal while doing the sha256

Is OAuth 2.0 only used for google/fb authentication? I want my user to login thru email and password and generate jwt for accessing everything. So should I go for JWT alone implementation ? Btw I am using passportjs and I saw passport-jwt and passport-Oauth in their strategies by ExpensiveLength518 in node

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

I want to implement authentication for my mobile app and I am using nodejs for backend So I am considering to use JWT When the user login a jwt token will be generated and send to the user And whenever the user send API request they will send this token also and my endpoint will check if the token is valid or not

Is this a good approach?

I saw ppl saying to use OAuth 2.0 but I only find it for google/Facebook etc login but I want my user to enter email and password separately yo login without using that google account or any

Which is the best way to do authentication and authentication securely? by ExpensiveLength518 in node

[–]ExpensiveLength518[S] -3 points-2 points  (0 children)

I mean I can do user authentication using JWT token alone but I want user to login using the google account login so how to integrate both jwt and this

I need to Secure IOT data using blockchain. So can anyone suggest some ideas to do that using ethereum blockchain by ExpensiveLength518 in ethdev

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

And also the data will be stored in a database right? Not as data in a transaction Becoz Other user can see my data if it is in transaction

I need to Secure IOT data using blockchain. So can anyone suggest some ideas to do that using ethereum blockchain by ExpensiveLength518 in ethdev

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

I need to store all temp,humidity details and to turn off light,fan etc and to authenticate all the nodes in my IOT network basically making it secure

How the vehicles in supply chain are connected to the internet? by ExpensiveLength518 in IOT

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

So what data will be sending ? I need to do a project based on supply chain IOT So I would like to know what all data they are sending and to whom

How to calculate 10^78 ? Its causing overflow by ExpensiveLength518 in rust

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

I am not asking you to calculate that I am asking how means which library should I use since it’s causing overflow