Bitcoin Forum
April 20, 2024, 02:32:02 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generate address and make it Hash.  (Read 356 times)
Peanutswar (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 1007


Bitcoin Casino Est. 2013


View Profile WWW
April 18, 2020, 11:31:58 AM
 #1

Good day people and especially to the newbies are getting curious how does the bitcoin address or any other altcoins address generated?. Today I made a basic concept system that is open for everybody that you try How does the address generated but first I would like you to introduce how does it work. Into the world of cryptocurrency, we need to make it secured all the time the address is generated randomly and check by the system it is already taken or not, after that, they will now generate the hash.

What is Hash/Hashing?
Hash is used to encrypting the password, emails, address or other information must be hidden or secured.
How the receiver and the sender get the key to unhash?
If both parties make some transaction they the sender already sent the key to the receiver so they can get the information easily.
What are the benefits of hashing?
Hashing is good to avoid from the hackers because the only one can open the code is the receiver and the hacker takes time to decode the hash.

Introduction to System.
1. Click generate. - the system will automatically create a random letter and number.

2. Click Encrypt. - to make it encrypted. The sender will send the encrypted message to the receiver.

3. Click Decrypt. -to make decrypted. The receiver uses the key to received and open the message.

Code:
 Random r = new Random();
        char[] codes = "abcdefghijklmnopqrstuvwzyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToArray();
        string output;
        void generateKey(int gkey)
        {
            output = null;
            for (int x = 0; x < codes.Length; x++)
            {
              output += codes[r.Next(0, codes.Length)];
            }

            t1bx.Text = output;
        }

        private void B_generate_Click(object sender, RoutedEventArgs e)
        {
            generateKey(10);
        }

        static string ComputeSha256Hash(string rawData)
        {
            // Create a SHA256  
            using (SHA256 sha256Hash = SHA256.Create())
            {
                // ComputeHash - returns byte array  
                byte[] bytes = sha256Hash.ComputeHash(Encoding.UTF8.GetBytes(rawData));

                // Convert byte array to a string  
                StringBuilder builder = new StringBuilder();
                for (int i = 0; i < bytes.Length; i++)
                {
                    builder.Append(bytes[i].ToString("x2"));
                }
                return builder.ToString();
            }
        }

        static string ComputeSha256Hash2(string rawData)
        {
            // Create a SHA256  
            using (SHA256 sha256Hash = SHA256.Create())
            {
                // ComputeHash - returns byte array  
                byte[] bytes = sha256Hash.ComputeHash(Encoding.UTF32.GetBytes(rawData));

                // Convert byte array to a string  
                StringBuilder builder = new StringBuilder();
                for (int i = 0; i < bytes.Length; i++)
                {
                    builder.Append(bytes[i].ToString("x2"));
                }
                return builder.ToString();
            }
        }

        private void B_hash_Click(object sender, RoutedEventArgs e)
        {
            txtbx_hash.Text = ComputeSha256Hash(output);
        }

        private void B_decrypt_Click(object sender, RoutedEventArgs e)
        {
            txtbx_dec.Text = output;
        }



Ps. This is came to my knowledge and understanding I hope I help you a lot. Here is the project file if you want to test
Click here to download the file[This will direct to google drive].

███▄▀██▄▄
░░▄████▄▀████ ▄▄▄
░░████▄▄▄▄░░█▀▀
███ ██████▄▄▀█▌
░▄░░███▀████
░▐█░░███░██▄▄
░░▄▀░████▄▄▄▀█
░█░▄███▀████ ▐█
▀▄▄███▀▄██▄
░░▄██▌░░██▀
░▐█▀████ ▀██
░░█▌██████ ▀▀██▄
░░▀███
▄▄██▀▄███
▄▄▄████▀▄████▄░░
▀▀█░░▄▄▄▄████░░
▐█▀▄▄█████████
████▀███░░▄░
▄▄██░███░░█▌░
█▀▄▄▄████░▀▄░░
█▌████▀███▄░█░
▄██▄▀███▄▄▀
▀██░░▐██▄░░
██▀████▀█▌░
▄██▀▀██████▐█░░
███▀░░
1713580322
Hero Member
*
Offline Offline

Posts: 1713580322

View Profile Personal Message (Offline)

Ignore
1713580322
Reply with quote  #2

1713580322
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713580322
Hero Member
*
Offline Offline

Posts: 1713580322

View Profile Personal Message (Offline)

Ignore
1713580322
Reply with quote  #2

1713580322
Report to moderator
CarnagexD
Sr. Member
****
Offline Offline

Activity: 1498
Merit: 374


Leading Crypto Sports Betting & Casino Platform


View Profile
April 18, 2020, 01:50:51 PM
 #2

Good to see that you make a short introduction about the using of the bitcoin address and how does the sending process included because today there are a lot of newbies getting curious about the creation of the bitcoin address and this is the basic concept they made generate an address for over 30-50 characters to make an address still it depends on them how long they want to make but still it needs to be connected on the coins if this address is categorized on bitcoin or not also the hashing process this one aims to secure the process of transferring of funds or information of both party this code hashing mostly use for encrypting and not easily get the information by the hackers.

█▀▀▀▀▀











█▄▄▄▄▄
.
Stake.com
▀▀▀▀▀█











▄▄▄▄▄█
   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
█▀▀▀▀▀











█▄▄▄▄▄
.
PLAY NOW
▀▀▀▀▀█











▄▄▄▄▄█
Wolfencloud
Member
**
Offline Offline

Activity: 67
Merit: 10


View Profile
April 19, 2020, 06:08:56 AM
 #3

This is one of a must learn topic about security, there are a lot of people who doesn't know even the simplest meaning of those things, one thing that they didn't know is that it is one of the most important part of crypto especially it is all about the security of ones bitcoin address which we use almost everyday for making a transaction. Usually hackers find a lot of ways on bypassing any user's account but with the use of hashing, it is quite hard for them to enter ones device or account's security. Also, it is quite amusing that you've make an effort on creating a computer program on how hashing and generating a random bitcoin address works.
XenoFever
Member
**
Offline Offline

Activity: 127
Merit: 28


View Profile
April 19, 2020, 12:34:59 PM
 #4

Nice post mate, Learning about hashing is really important for everyone, it is somehow related for security of your account, so for all the beginners out there like me, we should read and understand this post because it will help us.

It is great that you provide the code of the program, well for me, it is really important as an IT student because I am more attracted when I see some programs with code. I think you are also an IT, right?


▀▀▀▀     Winz.io     |      BITCOIN MINING CASINO ADVENTURE     ▀▀▀▀
████▐ ▌   LEVEL UP & WIN 40 PRIZES + 1 BTC MAIN PRIZE   ▐ ▌████
▄▄▄▄▄▄▄▄▄▄▄  [   S T A R T   P L A Y I N G   N O W   ]  ▄▄▄▄▄▄▄▄▄▄▄
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 19, 2020, 01:13:56 PM
Merited by pooya87 (1), hatshepsut93 (1)
 #5

What is Hash/Hashing?
Hash is used to encrypting the password, emails, address or other information must be hidden or secured.

Hashing has nothing to do with encrypting.
That's not what hashing is for.


How the receiver and the sender get the key to unhash?
If both parties make some transaction they the sender already sent the key to the receiver so they can get the information easily.

You can not unhash. The idea behind a hash function is, that it is a one-way-function.
In a transaction, the sender does not send any key to the receiver.


What are the benefits of hashing?
Hashing is good to avoid from the hackers because the only one can open the code is the receiver and the hacker takes time to decode the hash.

Hashing itself does not protect anything from 'hackers'.
Further, you don't decode hashes.




Good job. That was a A+ quality shitpost.
All mentioned information is wrong. No merits for you, sir.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 20, 2020, 01:12:13 AM
 #6

All mentioned information is wrong. No merits for you, sir.

Not only that... but the code is pretty bad as well. The "decrypt" button doesn't actually do anything meaningful in terms of "decryption"! All it does is display the value contained in the "output" global that is populated with the random "address" that is calculated when you click the "Generate" button! Roll Eyes Roll Eyes
Random r = new Random();
char[] codes = "abcdefghijklmnopqrstuvwzyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToArray();
string output;
void generateKey(int gkey)
    {
        output = null;
        for (int x = 0; x < codes.Length; x++)
            {
              output += codes[r.Next(0, codes.Length)];
            }

            t1bx.Text = output;
    }
...
    private void B_decrypt_Click(object sender, RoutedEventArgs e)
        {
            txtbx_dec.Text = output;
        }

OP, I understand that you're attempting to learn (and pass knowledge on to others), but unfortunately it would appear that your understanding of this topic is relatively poor. Sad

There is no encryption/decryption when generating private keys (and deriving public keys and addresses from the private keys)... although they can be stored in an encrypted manner. Also, you make no use of a "key" at all in your "encryption"... you are simply generating a SHA256 "hash".... this is not the same as using the AES-256 cipher to encrypt data with a key that can then be decrypted with the same key.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Chivas Regal
Member
**
Offline Offline

Activity: 88
Merit: 13

Cheers!


View Profile
April 20, 2020, 01:22:11 AM
 #7

Has anyone tried the google drive link to ensure it is a valid link?

Pleased to meet you.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 20, 2020, 01:41:44 AM
 #8

Has anyone tried the google drive link to ensure it is a valid link?
No, but the Google Drive explorer shows that it is indeed a .zip file containing a Visual Studio project... however, the dir labelled "THIS IS THE EXE FILE" gives the appearance of attempting to encourage just running the .exe... Undecided

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 20, 2020, 08:01:07 AM
Merited by HCP (2)
 #9

Has anyone tried the google drive link to ensure it is a valid link?

I did.

Given the fact that the whole information is nonsense, i was a bit suspicious about the uploaded zip file.
So i downloaded, unzipped and checked the .exe for malicious activity.

While some things might be slightly suspicious (like accessing memory of other processes) it seems like there is no obvious evidence for it being malware.


But as HCP has mentioned, the program isn't doing anything relevant. So there is literally not a single reason to download and use this.  

Velkro
Legendary
*
Offline Offline

Activity: 2296
Merit: 1014



View Profile
April 20, 2020, 08:28:09 AM
 #10

Nice post mate, Learning about hashing is really important for everyone, it is somehow related for security of your account, so for all the beginners out there like me, we should read and understand this post because it will help us.
Its important but that is pretty advanced stuff for beginners. I mean it looks easy to someone who know something about computer security already. But for beginners it will look like magic.
One step at a time and you will get there, understand it all Smiley keep it up.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 21, 2020, 03:58:19 AM
 #11

Like, I appreciate that the OP is attempting to learn... and trying to demonstrate the results of those attempts. So, full credit to them for that.

But, unfortunately, as stated above, what they have posted here is just poorly explained nonsense and of no real relevance... and is likely to be very confusing for other beginners. Sad

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!