Ask coding questions

← Back to all posts
how to load and decrypt the data?
ColePayneSexton

im creating a login system so i need to encrypt the password/username for saving, however after i load the data in i cannot decrypt is to read the data, how am i able to store the key with the user and still encrypt it to decrypt later

p.s t1 stands for test1
test file name:t1 password:t1

Voters
ColePayneSexton
Comments
hotnewtop
ch1ck3n

why do you need to decrypt

CodeMaster007

Why not? @ch1ck3n

ch1ck3n

@CodeMaster007
explain to me why you have to decrypt passwords to make a login system.

ch1ck3n

@CodeMaster007

CodeMaster007

I see what your saying. I agree that there really no point but if he really wants to, then why not? @ch1ck3n

ch1ck3n

@CodeMaster007 also passwords should NEVER NEVER NEVER BE DECRYPTED

CodeMaster007

Also, how do you make the letters to appear as if it was code? @ch1ck3n

ColePayneSexton

wait so i was over thinking it? @ch1ck3n

ColePayneSexton

or just other data in general say, the user wants to see stats? @ch1ck3n

ch1ck3n

@CodeMaster007

put ``` around the text

CodeMaster007
ColePayneSexton

this doesnt work, i still get the buffer error @ch1ck3n

ch1ck3n

@CodeMaster007 another ``` after the code

CodeMaster007

Wow, thank you! its working now! @ch1ck3n

ch1ck3n

@CodeMaster007 np

you can also use only 1 ` characters

CodeMaster007

Check this out...

https://www.section.io/engineering-education/user-login-web-system/

There is really a lot to explain and this sums everything up pretty nicely.

CodeMaster007