Hi this is a very dumb question but how do I translate/interpret this kind of hex passage to string/decimal? do I just ignore the colon (:) and translate the hex passage byte by byte ? how do i get the value of the keys?
I tried to find hex translators online but they seem to not have colon appear anywhere so I was just wondering if that was not the right way to get the value
rsa key example
Related
This is about Enigma encryption, I'm guessing the number of rotors doesn't matter but I'm using 3.
I am working with what's basically a coded version of the old mechanical enigma style encryption machines. The concept is rather old but before I get too far into learning it, I was wondering if it would be possible to be able to encrypt using all characters 0-9 a-z and A-Z but the encrypted text itself will only be a subset of these characters? I'm trying to replace a subset of characters (around 10 total) from the encrypted output, while still being able to get back to those characters if they were part of the input?
You can disambiguate by adding 1 to 2-character mapping for ambiguous symbols: O -> A1; 0 -> A2; other ambiguous symbols; A->AA. This is basically just like escaping in strings: we usually can’t put new line inside the string, so we represent it as \n. \ is represented as \\
If you’re working with encrypted data (so the probabilities of all characters are uniformly distributed and characters cannot be predicted) then you can’t compress the ciphertext. If you can compress it, then you’ve noticed some kind of pattern in the text and partially broken the encryption.
If you want to reduce the ciphertext’s alphabet, then you must increase the length of the ciphertext, otherwise you’ve successfully compressed it.
I will use an example, but the question goes for any similar case. If I have:
A character (for instance, €)
Its hexadecimal representation (for this one, C3A2C2809AC2AC). I just know it stands for €.
How can I, using this information, find out which charset matches this relationship?
I want to encrypt and decrypt ASCII messages using an RSA algorithm written in assembly.
I read that for security and efficiency reasons the encryption is normally not called character-wise but a number of characters is grouped and encrypted together (e.g. wikipedia says that 3 chars are grouped).
Let us assume that we want to encrypt the message "aaa" grouping 2 characters.
"aaa" is stored as 61616100.
If we group two characters and encrypt the resulting halfwords the result for the 6161 block can in fact be something like 0053. This will result in an artificial second '\0' character which corrupts the resulting message.
Is there any way to work around this problem?
Using padding or anything similar is unfortunately not an option since I am required to use the same function for encrypting and decrypting.
The output of RSA is a number. Usually this number is encoded as an octet string (or byte array). You should not treat the result as a character string. You need to treat it as a byte array with the same length as the modulus (or at least the length of the modulus in bytes).
Besides the result containing a zero (null-terminator) the characters may have any value, including non-printable characters such as control characters and 7F. If you want to treat the result as a printable string, convert to hex or base64.
I have an assignment in which I have to decrypt a text file encrypted with the Vigenere cipher. However, the alphabet used is the entire ASCII table (256 different characters), and I haven't found any material on how to deduce the key for this alphabet (as all material I've found assumes only a limited alphabet is used). Does anybody know how I should approach this problem? An explanation of good algorithms would be appreciated.
I have heard about octal number system lately and i wanna learn about it.
My dumb teacher that i asked for it. Told me "its no more used, u dont need to learn" but no sire im pretty sure its still in use so i need to know!
If there is someone who can explain me the octal number system and show me a way to convert it to Decimal(number system that we use in life) "it would help me to learn about it a lot" and where i can use it in life so i can show smt to that dumb teacher that he is wrong, that he must do his job on teaching..
i wanna do it on vb6, cause my teacher works on vb6 usually.
You can get more about Octal from Wiki - http://en.wikipedia.org/wiki/Octal
The octal, or base 8, number system is a common system used with computers. Because of its relationship with the binary system, it is useful in programming some types of computers.
Decimal, hexadecimal, and octal representations are straightforward. To read a string in these formats, use CLng.
Dim value As Long
value = CLng(Text1.Text)
Hexadecimal strings should begin with &H and octal strings should begin with &O.
To convert a value into a decimal, hexadecimal, or octal string representation, use Format$, Hex$, and Oct$ respectively. For example, Oct$(256) returns the octal representation of the value 256 (which is "400").