Bitcoin Forum
May 02, 2024, 10:29:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Basic encryption: practical exercise  (Read 253 times)
famososMuertos (OP)
Legendary
*
Offline Offline

Activity: 1736
Merit: 2731


LE ☮︎ Halving es la purga


View Profile WWW
March 12, 2020, 01:24:13 AM
Last edit: March 12, 2020, 02:24:31 AM by famososMuertos
Merited by CryptoYar (1)
 #1

This challenge can serve to begin to know the main types of texts.

Decipher the phrase, I will be sending him his merit (*).

QmFzaWMgZW5jcnlwdGlvbjo= 65 76 65 72 79 74 68 69 6e 67 20 79 6f 75 20 6e 65 65 64 gb xabj nobhg gur znva 116 121 112 101 115 32 111 102  01110100 01100101 01111000 01110100 01110011.

You can check your result with Sha256:
8C40C3E19AE419CD5CC92DB7CF4FA5819DDD31002AB3E7A436334DF3F5210D9B

If the passphrase are correct they must match.

_____________
This exercise includes 6 types of texts. Hint, 3 of them are Text (ASCII / AnSI), Binary, Decimal.

_________
(*)
Time: OP.
05 minutes 4 Merit
10 minutes 3 Merit
15 minutes 2 Merit
--      --      1 Merit

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀

Sr. Member
1714645797
Hero Member
*
Offline Offline

Posts: 1714645797

View Profile Personal Message (Offline)

Ignore
1714645797
Reply with quote  #2

1714645797
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
CryptoYar
Hero Member
*****
Offline Offline

Activity: 1064
Merit: 635



View Profile
March 12, 2020, 03:13:52 AM
Last edit: March 12, 2020, 03:25:52 AM by CryptoYar
 #2

Text: Hello world
In SHA256: 64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c

Text: Hello world
In SHA384: 7c2aec07d37d95482794305232f9ac9c136afdfe5f21079a87d6d67fb0ee1a76348e9c9d77a4b0c d26592790ece60a2c

Text: Hello world
In SHA512: b7f783baed8297f0db917462184ff4f08e69c2d5e5f79a942600f9725f58ce1f29c18139bf80b06 c0fff2bdd34738452ecf40c488c22a7e3d80cdf6f9c1c0d47


If the URL is encoded
Original domain: https://bitcointalk.org
After encryption: https%3A%2F%2Fbitcointalk.org

There are many more tools here, you can check: https://emn178.github.io/online-tools/url_encode.html

Edit: I'm not interested in your merit reward buddy
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10524



View Profile
March 12, 2020, 04:38:48 AM
Merited by ABCbits (1)
 #3

you are using wrong terms all over the place.
it is not "encryption" but it is "encoding".
you don't "Decipher" what you posted but you "decode" it.
and there is no "passphrase" to do it either.

base64decode("QmFzaWMgZW5jcnlwdGlvbjo=") = "Basic encryption:"
base16decode("65766572797468696e6720796f75206e656564") = "everything you need"
and so on.

you are basically converting the string to a byte array and then using different encodings to show it. this is NOT encryption.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
famososMuertos (OP)
Legendary
*
Offline Offline

Activity: 1736
Merit: 2731


LE ☮︎ Halving es la purga


View Profile WWW
March 12, 2020, 12:58:05 PM
Last edit: August 10, 2020, 11:00:35 PM by famososMuertos
 #4

(Edit/I made a wrong approach, quote not needed.)
No.
You do not understand what my point of view is, it is different.

I'm going to develop an idea that has the OP as a lesson one.  (Edit/text deleted/I made a wrong approach)
_____________
(Edit/I made a wrong approach, quote not needed.)

The idea is to develop this theme based on the newbie questions.
 
I think you are used to the OP developing the whole context of an idea, don't expect that, there is always someone here who wants to do it differently.

Lesson 2

The Op begins with the opening phrase:
Quote
.../  to know the main types of texts.

These Are:(encoded/decode)
1.-Text (ASCII/ANSI) to "Binary, Hex, Base64, Rot13, Decimal"
2.-Binary to "Text, Hex, Base64, Rot13, Decimal"
3.-Hexadecimal to "Text, Binary, Base64, Rot13, Decimal"
4.-Base64 to "Text, Binary, Hex, rot13, Decimal"
5.-Rot13 to "Text, Binary, Hex, Base64, Decimal"
6.-Decimal to "Text, Binary, Hex, Base64, Rot13"


_____________
(Edit/I made a wrong approach, quote not needed.)
mmmh!

Explanation 1:
Hello! => Encode-convert-codify-cipher-cryptography (2) :  Hex+ Text (ASCII/ANSI): 68 6f 6c 61!
(2) Synonyms mains.

Explanation 2:

68 6f 6c 61! =>Decipher, decrypt, crack, decode: Hello!
____________

You have helped me develop the topic with your post. But above all, remove confusion.

It is a shame that given his experience, he deciphered the phrase, he is sure that if he wanted to do something complex he would expose it in Meta. It was for a beginner.

______________


Quote from: author=CryptoYar
If the URL is encoded
Original domain: https://bitcointalk.org
After encryption: https%3A%2F%2Fbitcointalk.org

Thanks, it is the idea to give examples, "URL is encoded."

___________

Other exercises coming soon (L3). But you have to finish this:

QmFzaWMgZW5jcnlwdGlvbjo= 65 76 65 72 79 74 68 69 6e 67 20 79 6f 75 20 6e 65 65 64 gb xabj nobhg gur znva 116 121 112 101 115 32 111 102  01110100 01100101 01111000 01110100 01110011.

____________-update.
(Edit/text deleted/I made a wrong approach)

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀

Sr. Member
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
March 12, 2020, 04:35:53 PM
Merited by famososMuertos (1)
 #5

Other exercises coming soon (L3). But you have to finish this:

QmFzaWMgZW5jcnlwdGlvbjo= 65 76 65 72 79 74 68 69 6e 67 20 79 6f 75 20 6e 65 65 64 gb xabj nobhg gur znva 116 121 112 101 115 32 111 102  01110100 01100101 01111000 01110100 01110011.

ok, I'll bite.

"Basic encryption: everything you need to know about the main types of texts."


it is not "encryption" but it is "encoding".
you don't "Decipher" what you posted but you "decode" it.
and there is no "passphrase" to do it either.

I completely agree (except for the rot13 substitution cipher), but I'm curious to see what happens next.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
famososMuertos (OP)
Legendary
*
Offline Offline

Activity: 1736
Merit: 2731


LE ☮︎ Halving es la purga


View Profile WWW
March 13, 2020, 08:56:24 AM
Last edit: March 13, 2020, 07:08:48 PM by famososMuertos
 #6

ok, I'll bite.
You are curious! or you want to help develop theme.

It is a topic to interact in a positive way, you could put examples, collaborate with the post.

Please! The goal is for a novice to do the exercises and receive the merit.

___________________________________________________________/
_______________________o___________________________________/
___________________________________________________________/
Anyway
L3:Base64

Explanation: (odolvlobo thanks for giving the answer)

QmFzaWMgZW5jcnlwdGlvbjo= 65 76 65 72 79 74 68 69 6e 67 20 79 6f 75 20 6e 65 65 64 gb xabj nobhg gur znva 116 121 112 101 115 32 111 102  01110100 01100101 01111000 01110100 01110011.

QmFzaWMgZW5jcnlwdGlvbjo=

Base64: It is basically the process of encoding from binary to text, using the characters (ASCII *) A-Z, a-z, 0-9 (62) plus two symbols that vary according to the different variants that exist. (Printable characters)
It can be identified by the character "=" or "==" (be careful with this, it is not always like this)

* ASCII is represented in decimal basis.

Input text:
Basic encryption:

Decimal: 66 97 115 105 99 32 101 110 99 114 121 112 116 105 111 110 58
66   B
97   a
115 s
105 i
99   c  
32
101 e
110 n
99   c
114 r
121 y
112 p
116 t
105 i
111 o
110 n
58   :

Then, it is grouped in buffer of 24 bits / 1 bytes= 8 bits / 3 bytes
Bits
01000010 B
01100001 a
01110011 s

So 3 bytes in a groups of 010000100110000101110011 bits.

Then this number  010000100110000101110011 to group in 6 bit. (26)

Binary (6x4=24)
010000 - 16=0x25+1x24+0+0+0+0
100110 - 38
000101 - 5
110011 - 51

Base64:
A-Z, a-z, 0-9 , 62"symbol" 63 "symbol" e.g. "+" "/"
16 es Q
38 is m
5   is F
51 is z

QmFz...

Repeat with: ic ,enc,ryp,tio
They all match in buffer 24 bits.

When it is not possible to group in a 24-bit buffer (3 bytes), it is completed with zeros to the right until achieving multiples of 6. In this case, as there are 2 bytes, the character "=" is added, this serves as a warning so that the decoder do not take the added data as part of the output message.

When they are less than 3 bytes, the entry is padded with zeros to the right to complete the multiples of 6.

In our case there are 2 bytes (16 bits) "=" is added.
Input text:
n:
    ASCII - bits
n - 110 - 01101110  
:  - 58  - 00111010

 0110111000111010 (26)
      
011011 -  27 - b
100011 -  35 - j
101000 -  40 - o
=
Base64
... bjo=

_______

Now that you know how Base64 works ... https://www.base64decode.org/

____________



Base64 Applications in images, keywords in encoded messages, URL, SMTP, etc .

In conclusion Base64 is a different way of displaying data, that does not mean that it is protected. But it is a feature that can be used for your own benefit. Base64 can help us encrypt sensitive, important information without complex algorithms or even a single line of code, just creativity.


Remember that hiding data using a private key is not a matter of the 21st century

____-
Questions, doubts, help are welcome.

_____-up:Mar,03
Upcoming post canceled ... but I'll be back soon.  L4








 


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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀

Sr. Member
famososMuertos (OP)
Legendary
*
Offline Offline

Activity: 1736
Merit: 2731


LE ☮︎ Halving es la purga


View Profile WWW
March 23, 2020, 05:16:32 AM
Last edit: March 23, 2020, 05:27:47 AM by famososMuertos
 #7

Cryptography
Hidden Message - Data
Encryption
Data is encoded - Scrambling- Secret Code - etc
The importance of terminology

One of the important things in any area is the jargonlingo and the history that leads us to those new techniques that make it dominant or the best, in fact today if you mention crypto in this forum you immediately think about Blockchain, it is logical! This is "bitcointalk forum."

When you dominate an area, the past is a reference, but in reality few study it, currently all are located mainly in 2008-2009, the Blockchain has become the owner of the crypto concept.

So, let's use a colloquial jargon, where most of the people who come to the forum out of curiosity or whatever, they understand easy."hidden message"

Quote from: famososMuertos
The objective of the Bitcoin core as a transforming entity of an "establishment" does not develop simply by being a programmer, there is a global understanding of many areas, technological, social, economic.

Now a bit of history (version fast), the reason cryptology is millennial, we start with the Egyptians, we go through the famous Roman empire and we get to the industrial revolution in the 18th century where we should make a Break, the industrial revolution, which began to bear fruit in 19th century in the way we communicated from point A to point B.

The 19th century and start of the 20th century, when technologies that improved communication entered, messages and information in general began to travel differently,  it became literally   a dots and dashes

The hidden message in letters, the art, all this continues even today, but in essence the way of handling data in the 20th century underwent a technological transformation.

And it is essentially where that brotherhood between coding, decoding and deciphering, encryption begin to separate in their respective areas, but for the ordinary people, the one that uses that universal jargon of hidden messages, remains the same.

____
Recommended sources:
Morse code-code-encryption-cryptography
_______________
Next: Decimal 65 76 65 72 79 74 68 69 6e 67 20 79 6f 75 20 6e 65 65 64

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀

Sr. Member
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!