# Could a Universal Translator be used to decipher encryption?

This question:Why would a language be untranslatable by universal (machine) translator? inspired me to consider, if one possessed a universal translator, is it reasonable to consider that it could be used to translated an encrypted message? Of course, it could be expected that if a UT could be used for decryption, that those encrypting would devise a way to thwart the UT, but could the UT be used to decrypt more primitive forms of encryption, such as an enigma machine generated encrypted message?

Edit: The question was asked as to how it would work. How I perceive it, it would have a complete understanding programmatically of how we communicate, in all forms, with updates when we find new ways of communication that hadn't been conceived before.

Edit #2: How it would work when encountering a language previously unknown is internally, it would look for similarities to known languages and if it finds a similar language, it would apply the rules of that language, until those rules fail, then seek another language that has a more successful rate of translating, and use that, repeating this testing until it finds one that best matches. In the event no known language matches satisfactorily, it would then apply rules of language structure...common words and phrases, until it finds a structure that works and use that. I am not a linguist, so I do not know if there are other tests. If there are, then they would apply, all programmatically. If all tests fail, then it would request additional information or wait until additional data was received...such as further conversation, or a chart of common words.

But, that is not what I am looking for. What I am looking for is, using whatever programmatic format, can a UT identify code?

One more point about changing encryption. It could be possible that a language changes pronunciation in a similar manner. That is, whatever encryption you envision could be the natural language of somewhere.

• That depends. How does your hypothetical universal translator know that its translation is correct? – Philipp Nov 21 '16 at 22:42
• Philipp makes a good point, MS notepad can "translate" a program into text, but the result is gibberish. So your UT might happily try and translate whatever message it was fed without error, but encrypted messages might come out as gibberish. – Samwise Nov 21 '16 at 22:55
• I think a key question you need to answer before asking such a question as this: if someone intends to deceive you into believing their words mean one thing when they in fact mean another, what does your UT do? When you call up a girl to ask her out, and she says "maybe later," does it translate that into "I don't like you that much?" – Cort Ammon Nov 22 '16 at 5:01
• @Schwern The Enigma is claimed by Wikipedia to have had a theoretical key space of around 380 bits, reduced to around 76 bits in what might be considered reasonable situations. I haven't verified against the cited source, but the citation points toward the NSA (yes, that NSA). I'm not sure I would consider that flawed by design; it was secure enough that, had it been used correctly, chances are it wouldn't have been broken. It was lack of operating discipline that allowed the Enigma to be broken, not lack of cryptographic strength. – a CVn Nov 22 '16 at 9:25
• One interesting, plot-convenient thing that might happen: the translator translates, but it's still encrypted. – SIGSTACKFAULT Nov 22 '16 at 20:38

# No

I will make the assumption that the universal translator generates a consistent mapping from words, expressions, or idiom in one language to another. I would also assume that it uses samples of language to map potential meanings onto any phrase or sentence, and through some super-advanced algorithm, quickly discerns the meaning of what is spoken.

The problem with cryptography, in this context, is that there is no direct mapping of a word (or expression, or idiom) from one language to another. If I say something, and public key encrypt it, and then you say the same exact thing and encrypt it, those two statements might not be the same thing! Their encoding depends on the user's key. Furthermore, if I say something today, and then the same thing tomorrow, when encrypted those won't necessarily be the same thing either!

The problem with encryption, is that there is no consistent 'language' to be translated. There cannot be a map of a concept like 'blue' to a discrete subset of an encrypted message. 'Blue' could potentially be encrypted any way, depending on what specific cypher is being used that moment by that user.

Therefore, based on the assumptions of how a Universal Translator works that I started with, the Universal Translator will not be able to translate an encrypted message.

• Yup, the difference between encoding and encryption comes to mind here. Encryption that satisfies Kerckhoffs' principle would have the unique key you speak of. Encryption that does not satisfy the principle is fundamentally insecure. – Bob Nov 22 '16 at 1:03
• few languages have only direct mapping of words and expressions. most have contextual cues, subtext, and nuance. that's why google translate creates gibberish so often. A universal translated would need to actually be able to think to understand these. – John Nov 22 '16 at 1:48
• @John The point is: given the same words, contextual clues, subtext, and nuance as input, the UT should generate the same output every time. With an encrypted message, given the same byte stream as input, the output could be different every time. – kingledion Nov 22 '16 at 13:01
• I think the point everyone is trying to get at here is that true perfect encryption produces an output that is utterly indistinguishable from random noise to anyone who doesn't have the correct method and key to decrypt it. In technical terminology, this is what distinguishes encryption from encoding. A hypothetical perfect universal translator would be able to decode any encoded message, but would find as much meaning in an encrypted message as it would in the sound of running water, or the noise a Geiger counter makes when pointed at uranium, or TV static on a dead channel. – anaximander Nov 22 '16 at 14:42
• I understand people's points about encryption, but I think you're underestimating how impossible of a task a universal translator is. There's a reason Egyptian hieroglyphs completely defied translation until the discovery of the Rosetta Stone. And the sorts of universal translation we see on star trek where the computer starts translating words immediately within the first 2 words without any real life context or reference is just as mathematically impossible. – Shufflepants Nov 22 '16 at 14:54

An encrypted data stream is statistically indistinguishable from a purely random stream, at least a data stream encrypted by a good encryption algorithm. Since the encrypted stream cannot be distinguished from a random stream, there is no structure on which a universal translator could work. If the encrypted data stream can be distinguished from a random stream then the encryption algorithm is broken; we should expect that when we will be smart enough to build a universal translator we will also be bright enough to write decent encryption algorithms.

• That significantly depends on the method of encryption used and upon the method by which the universal translator translates the language it is hearing. While there do exist Information-Theoretically Secure encryption methods as you describe, there are many, many other kinds of encryption that can be broken with enough computation power. "Enough" computation is very subjective, but if the UT has that kind of power it could possibly decrypt an Information-Theoretically Insecure message. – MozerShmozer Nov 21 '16 at 23:10
• @MozerShmozer There's nothing about that scenario which differentiates a UT from any other powerful computer brute forcing weak or flawed encryption. – Schwern Nov 22 '16 at 1:09
• @Schwern Which seems to be exactly the point of the question! – immibis Nov 22 '16 at 1:16
• The point I was making is that progress in AI (as the basis of the universal translator) will most likely be matched by progress in cryptography. We are already transitioning towards algorithms which are immune to quantum computing, although at present we don't have real/practical/powerful quantum computers (depending on your take on the current state of the art). When the universal translator will appear as a tiny speck on the horizon cryptography will have already introduced encryption algorithms immune to it. – AlexP Nov 22 '16 at 6:48
• @ventsyv: You are misinformed. Modern encryption algorithms cannot be defeated by brute force alone. They cannot. Computation needs energy and there are hard physical limits to how powerful a computer can be. In order to break a modern algorithm, say AES, you need to find a weakness in the algorithm or to wait for a mathematical breakthrough. Note that an encryption system is much more than an algorithm, and it is not unusual to defeat the encryption system as a whole because some part of it was weak; but this is outside the scope of the question. – AlexP Nov 22 '16 at 21:47

There are no universal translators in real life, so the capabilities of a fictitious universal translator in a story are 100% defined by the author's choice of such capabilities.

Thus the answer to this is plain and simply "whatever you want it to be." That being said, there would be some requirements on a UT that can decrypt encrypted text.

• It needs to be effective at reading between the lines to find the true meaning. What you are describing would only make sense if the translator tries to find the real meaning of things, not just what is said. A translator that can unmangle enigma encoded messages would be able to read between the lines for a hapless male character who is obliviously missing the hints his wife is giving him. (come to think of it... can you make me one of these!?)
• The mere fact that it is possible to translate such meanings should suggest that there is some degree of commonality between all languages. In linguistics, it is not known whether such a commonality exists. Chomsky famously suggested that the concept of recursion was universal to all human languages -- a so called "universal grammar." Strange human languages such as the Pirahã language make it difficult to argue this commonality exists in humans. Commonality between sapient species is beyond that, and in the realm of the author.
• -1 If it's "magic", sure, but in that case the OP wouldn't be asking the question. But assuming even the most basic laws of Information Theory hold, languages have patterns whereas encryption is trying to look as much like random noise as possible. See @AlexP's answer. – Schwern Nov 22 '16 at 1:12
• @Schwern And yet, literally by definition, encryption contains patterns. Otherwise it'd be pretty boring to receive an encrypted message! Hence why I focused on other attributes that would have to go hand in hand with such an ability. – Cort Ammon Nov 22 '16 at 1:16
• No, by definition strong encryption contains no hints at the original message. For example, if I use a well-generated one-time-pad properly the simple message HELLO can become literally anything. Using the key XMCKL it becomes EQNVZ. It is impossible to break that encryption without already knowing something about the message or the pad because the message I sent could be any possible 5 letter string. It's only the key that gives it meaning. Any hint of the original message in an encrypted message is a flaw in the encryption algorithm. – Schwern Nov 22 '16 at 1:25
• OTP, properly used with padding, only leaks max message length, but I used them as a simple demonstration that good encryption means random messages. Good encryption algorithms aren't broken in one go, and it's not done by looking at the messages for patterns. Instead, the algorithm is examined for flaws which can be exploited to reduce the scale of a brute force attack. Without knowing the algorithm, having the message is useless. Understanding a language isn't about finding minute patterns in large amounts of noise anyway, it's about seeing patterns and interpreting them, more like decoding. – Schwern Nov 22 '16 at 3:44
• @Schwern AlexP’s answer notwithstanding, a real Universal Translator would presumably break mathematical laws in similar ways to what’s needed to break strong encryption. I say “presumably” because this may depend on things about languages that we do not yet know. So this answer is spot-on; a UT is a mathematical impossibility so positing it means anything goes: in formal terms, you can infer anything from a false premise. – Konrad Rudolph Nov 22 '16 at 16:02

One important aspect that all naturally occurring (and some invented) languages have in common is that it has native speakers who learned the language by listening to it. I won't go so far as to say that the languages were "designed" to be learnable, but any language that isn't human-learnable wouldn't last very long.

Encryption, on the other hand, is specifically designed so that a listener who doesn't know the encryption will be unable to decipher it.

A translator that is designed to be able to learn like a human (no matter how much accelerated) won't be able to crack encryption (and the encryption being cracked is crackable by one or more of its algorithms) unless the ability to crack encryption is specifically included, just by virtue of this difference in "design" of language and encryption.

EDIT: This doesn't even go into the technical side of why encryption is difficult to crack, which is a much bigger question (and mostly irrelevant once you consider the above).

• I would say that languages are intended to be easily understood, so your initial point is wholly valid. – Tony Ennis Nov 23 '16 at 0:05
• i was trying to avoid the question of intent for something that evolved into its current form instead of being designed a certain way from the beginning. – Trevortni Nov 23 '16 at 0:18
• But if I weren't trying to avoid that, I would have just said that languages are designed to be understood by anyone who cares to learn, while encryption is designed to be understood only by those who are entrusted with the knowledge needed to crack it. – Trevortni Nov 23 '16 at 0:19

No.

This extends on some other answers going into more details, but the short summary is that every language by necessity has patterns. A grammar, a fixed vocabulary, semantics, all of that. A well-encrypted data stream should not have any meaningful patterns, it is indistinguishable from noise or randomness.

A universal translator by definition does not have a database of languages (it wouldn't be universal, or the database would have to be infinite), but rather "learns" a new language it encounters. The only way to do that is to somehow (handwaving) decipher the patterns in the new language. On an encrypted data stream, it would not have any patterns to identify, thus it cannot translate/decrypt it.

No, translation and decryption are completely different processes with different rules and methods, and a system capable of one isn't automatically capable of the other.

Finally, answer with caveat: When you go into the realm of very, very simple encryption (Ceasar ciphers and other substitions), then yes your translator would be able to translate encrypted messages, because these primitive ciphers don't hide the patterns. Which is exactly why they are so trivially easy to break that you can do it with a pen and a sheet of paper.

One thing that wasn't mentioned yet is that a universal translator would be perfect for codewords and code phrases.

A codeword or phrase is basically a substitution for a normal word or phrase, for example a "tank" could be called a "can" and killing someone could be "taking out the garbage".

A universal translator could pick that up as a local dialect, synonyms or sayings and then automatically start translating them not even knowing it was meant as a code.

• I would expect a translator to translate literally, unless the dialections were included in the programming. – Sensii Miller Nov 22 '16 at 17:05
• I can understand your standing. I think of the line in Ocean's Eleven where the one guy was talking about being in a Barney. He had to explain, Barney = Barney Rubble = Rubble = Trouble. I doubt anyone outside his flat understood that. – Sensii Miller Nov 22 '16 at 17:07
• @SensiiMiller, but if Barney was used consistently and always referring to the same scenario, then the UT would be able to infer its meaning from context. – Arturo Torres Sánchez Nov 23 '16 at 4:35
• I don't think it could deduce the meaning without direct input defining it. Being a universal translator, it accepts input and provides output based on programming. It is a machine so it does not understand meanings of feeling words, like "trouble", anymore than a language to language translator has an understanding of feeling words. I guess it is possible to program it to understand the types of input that define feeling words, but that could allow it to be corrupted by faulty data input or an antagonist who deliberately provides data input that corrupts its ability to learn....interesting. – Sensii Miller Nov 23 '16 at 19:50

## Universal Translator as a cryptanalysis engine

The proposed concept isn't that far fetched. It's worth noting that the field of machine translation starts with this quote:

“When I look at an article in Russian, I say: ’This is really written in English, but it has been coded in some strange symbols. I will now proceed to decode’” (Weaver, 1955)

Any non-magic implementation of an Universal Translator must be a de facto cryptanalysis engine that attempts to divine a decoding process for a previously unknown communications system, given some sample data.

It doesn't mean that it can magically start solving unsolvable problems. Secure modern encryption algorithms are not vulnerable to analysis that a non-magical UT can perform. The following styles of encryption should be in scope of what any UT must be able to do to be UT:

• All the various styles of substitution ciphers - they map directly to translation problems between e.g. text in different alphabets;
• Many approaches of steganography - detecting which parts of observed behaviour are relevant for the language (e.g. is meaning communicated by the pitch shifts in sounds coming from the vocal tract, the twitching of the eyes, or both?) is comparable to the problem of detecting hidden messages in large data streams;
• repeatable block cipher analysis - mapping fragments of noise to units of meaning, given vague data and guesses about what it might represent is comparable to breaking https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Electronic_Codebook_.28ECB.29 ciphers.

However, language (no matter how alien) is substantially different from an encryption system in that it is meant to be understandable and learnable, either explicitly designed so or naturally evolved towards that. Properly designed and used encryption systems do not leak information that can be used to learn it, so a non-magic universal translator doesn't have available data to learn from.

This sounds like a sword and armour problem.
A sword that can cut through any armour forces the design of an armour that can't be cut through by any existing sword, which forces the invention of a sword that CAN cut through that armour, which forces the design of better armour,....and so on.

Similarly, a translator that can decrypt encrypted information forces the design of better encryption algorithms. Now, unless the translator is specifically designed as a snooping tool, that's where it stops, otherwise you get an encryption arms race.

The answer, for a legitimate device, would be NO.

I am the one that wrote the encryption concept in the referenced link.

My intent behind the idea that a language could EVOLVE with a natural encryption, not necessarily a digital or binary type encryption. While I was considering the idea, I was thinking of a reason why encryption would be required... and I imagined a society that only communicated via sonar or pheromones in a crowded space. In order to separate conversations from the noise of other conversations, a natural encryption system was developed. The parties involved in the conversation had the key to decode, and everything else that was indecipherable was just considered background noise.

Yes

I believe that it would be well within the ability of a Universal Translator to decrypt KNOWN encryptions, especially ones that were created dozens/hundreds of years ago.

This knowledge base of encryption techniques and strategies could just as easily be applied to new variations, and would require much of the same logic, analysis and intuitive leaps as parsing a newly discovered language. Many of the same problems would apply too... for example, not having enough data (short message bursts), limited reference points, design of encryption too unique (grammar), limited ability to extract meaning, etc.

Ultimately the UT is an AI computer and would not give up (humans might stop the processors at some point though). Eventually given enough data and processing power the UT could crack the encryption.

However, I wouldn't necessarily make such encryption breaking UTs available to the general public... it would be in the hands of government, military, etc.

Often in history, encrypted communiqués are decoded but their information may no longer be viable or valuable past a certain period of time (such as in military operations).

Do not expect that your currently encrypted data will be safe in 10+ years unless you continually update it with the latest technology.

IT-guy here

Depends on the encryption-scheme in question. For keyless encryption-algorithms it's pretty trivial, since every word can be directly translated into an encrypted word and vice versa. As an example one could name ROT13.

For encryption with keys, things become at least hard to impossible. Consider for example the Caesar-Cipher, which is basically ROT13 with an arbitrary rotation-offset. The issue here is obviously that we need the key to get a proper result. We can of course guess the key, but this requires a way of distinguishing the correct output from rubbish that gets produced when we translate with a wrong key. This way may exist for certain inputs, but there is as well quite a good chance, that another key results in another text that is valid as well.

For modern encryption-algorithms this becomes even worse. Caesar-Cipher has a key between 0 and 26. AES256 encrypts with a 256bit long key. So on average we need 2 ^ 256 / 2 = 2 ^ 255 guesses before we get the correct key. With a quite good chance of finding a few other keys that output other "correct" output as well (correct in the sense that the UT understands it). In addition to that, the computation will take for ever with current super-computers and the worldwide per year produced energy would only be sufficient to test out a fraction of the keys. And at that point we haven't even done any testing whether there is a valid output.

So in short:
For keyless encryption-schemes: sure, it's just a simple mapping. For encryption using a key: theoretically yes, but the encryption needs to be extremely weak and you need to be lucky in terms of the encrypted text to get a definite output. For any stronger encryption you need an enormously strong UT (far beyond what is possible with state-off-the-art resources). Additionaly technology moves also on for encryption. E.g. there are already public-key-encryption algorithms in the making that are resistant to quantum-computers. You'll never be capable to build a UT that is able to translate ciphertext that was translated with state-of-the-art encryption, simply because that's exactly what encryption is supposed to do.

• In simplest terms, a UT translates something representing meaning in one form, to something representing equivalent meaning in another form. For keyed encryption, the meaning is essentially split between the key, the ciphertext (and one other thing). Imagination might present a computer that could try all possible keys at once, but the trick (as you note) is identifying when the correct plaintext has been produced. So that "one other thing" is knowledge of which of all possible keys is the correct one. That (with public/private key encryption) is only known to the holder of the private key – jinglesthula Nov 22 '16 at 20:37
• Hm, well - and two other things. Knowledge of the encryption scheme used, and the decryption algorithm for that scheme. The first may be unknown (and is the most serious deal-killer for the UT). Knowing the first we could assume knowledge of the second. – jinglesthula Nov 22 '16 at 20:40
• @jinglesthula well, one essential problem is exactly that meaningfulness. It's just like with natural language. The meaning might alter entirely based on what language/algorithm and key is used. There are quite a few examples for this in natural language (quite often referred to as "false friends"). For binary codes this gets even worse. For example 0x6869320A could mean "hi!" in ASCII or represent a number. Probably it's a magic number identifying a certain type of file, ... Encryption-algorithms that aren't reversible are called hashes. But that point is rather about math than knowledge. – Paul Nov 22 '16 at 21:01

No.

An encrypted message is, by definition, incomplete.

When you encrypt a message, you then have two pieces that you need to unlock it:

• The key
• The encrypted message

The Universal Translator wouldn't have the key.

Note that the key can be arbitrarily long (eg. Book Cipher), and if you come up with the wrong key, you could decrypt the message to a completely different result, failing the translation.

## It depends on how the translator is implemented, but probably No.

There are two major categories of translator: language analysis (Star Trek), and mind reading (Hitchhiker's Guide to the Galaxy).

### Language Analysis

In the case of the former, there always appear to be limits and certain languages are just so alien that they cannot be translated. Example: Tamarian in Star Trek and the Orz in Star Control. I think that for reasons stating, if the engine is making a best guess effort to analyze the data based on common thought patterns, then obviously the same limitations that would apply to species that fundamentally reason differently would clearly extend to cryptography, as good cryptography means that no analysis can really be done.

If the translation works by directly accessing the mind of the creature speaking, then it could work assuming that the device knows how to directly read the thought patterns of the one speaking. An obvious example of where it would definitely work is if humans had an implant (in their brain or vocal cords) that would encrypt the speech as it's being spoken, and a second implant that would do the translation probably accessing a public key over wifi or some such.

On the flip side, this sort of translation would be extremely unlikely to work (at all) when communicating with sentient robots, whether or not the speech was encrypted.

Of course, a translator could be implemented that attempts to use both approaches simultaneously, but clearly it would not work in the case of sentient robots speaking under encryption.

• What about the Farscape translators? – Sensii Miller Nov 23 '16 at 22:05
• @SensiiMiller haven't watched Farscape. Could you elaborate? – durron597 Nov 23 '16 at 22:20
• It has been a while. My memories of it are a bit fuzzy. Here is the Wikipedia page: en.wikipedia.org/wiki/Farscape . An astronaut is trying to reach light speed travel by skipping off the atmosphere. As he almost reaches it, a wormhole appears and swallows his ship then disappears. He ends up somewhere else, travelling a great distance through the wormhole. There are sentient beings there. Obviously, they do not speak English, or any other Earth language. He gets captured(rescued) by some people running from the stellar law enforcers. A little bug-like machine injects him – Sensii Miller Nov 23 '16 at 22:25
• with something (a UT) that allows him to understand the beings on the ship and they understand him because they have the same UT injected in them. I forget the explanation of how they work. You should look for it online. It was on Netflix for a long time. I highly recommend it if you are a fan of the two you mentioned. – Sensii Miller Nov 23 '16 at 22:35

Yes, provided a large enough sample.

To learn a language, an universal translator needs a large corpus of texts in that language, ideally with some information about its meaning. From that corpus it can infer information about the language.

A large sample of encrypted texts with the same keys won't be different. It is just a language with different rules - maybe a bit more complicated - but that rules can be inferred from the sample. In fact, it would be possible for cryptographers to break any code given enough messages with the same key and enough computer power.

in order to translate nuance, subtext and handle contextual meaning a universal translator would have to be an AI. capable of actually understanding the language not just an algorithm. Such an AI would be able to break the simplest encryption (substitution, ciphers, ect) relatively easily, but more advanced encryption would just as hard for it as it would for humans.

If you want really hard science ideally both sides would need their own UT which would communicate together at high speed to learn each language. simply not having one on each side would make it much harder and require cooperation.

• -1 An encrypted message is (nearly) random noise. Training an AI to understand language patterns, nuance, subtext, contexts... does nothing to prepare it to break encryption anymore than a person with a degree in linguistics makes them a good modern cryptographer. All you've got at that point is a powerful computer, the AI is irrelevant. – Schwern Nov 22 '16 at 1:16
• hence the term simplest, things like replacement, code phrases, rotation, or filler. The question specifically asks about primitive encryption as well. – John Nov 22 '16 at 1:26
• not to mention using an obscure language has been used for military encryption more than once. just look at the US code talkers. – John Nov 22 '16 at 1:33
• I see now the OP did ask about flawed encryption like Enigma. Shame, makes the question so much less interesting. Apologies for the down vote, but the basic argument still holds: your AI is nothing more than a fast computer. As for "code talkers" that's not encryption, that's just a code. I did an answer about that over in History.SE. – Schwern Nov 22 '16 at 1:35
• there I think that edit should help clarify. – John Nov 22 '16 at 2:04

## No.

Given an encryption algorithm A and a secret key K, we can map from a string in English to a new string. We'll call this "language" AK. The product of encryption with algorithm A using key K is a string in AK.

Dog -> [cyphertext]

Assuming our universal translator is capable of exhaustively trying every possible language in existence, it should eventually try the language AK. This will result in:

[cyphertext] -> Dog

However, it's also going to try every other language in existence. There likely exist other keys that result in:

[cyphertext] -> Cat [cyphertext] -> [a secret so terrible, the universe is instantaneously destroyed] [cyphertext] -> [the recipe for Coke] [cyphertext] -> [cyphertext]

It'd be possible to reject spurious combinations of A and K with a large enough sample size (we get garbage output that isn't English), but that assumes that we know the language we're decrypting to.

Since we're testing every language that could ever exist, we can handle double, triple, etc. encryption - just create a language AK•AK that represents two rounds of encryption, then translate from AK•AK to English. So that shouldn't be an issue.

There are an infinite number of languages, and it's not even possible to recognize all of them with a Turing machine, but we're already assuming the universal translator has gotten past that little computability problem.

So, if you have a universal translator that can do uncountably infinite quantities of work at once and is capable of figuring out what a valid string in the target language is, then yes, you can decrypt anything.

..so basically, the answer is gonna' be no.

Simply put, the answer goes like this:

An encryption is about turning an amount of data segments (not necessarily words, mind you but we can assume words) scrambling the data (e.g. mixing all the letters together to form one giant word or series of words) applying an invertible numerical transformation to the data (e.g. adding 1 to every letter and shifting it), mixing some more, doing more transformations, etc. Finally the data is sent off and the result is undone. DNA is a good example of encryption. Programs are encryption. Integrals (if you know calculus) are encryptions (because the inverse to a specific integral is always unambiguous). If your translator handles general encryption, this implies your translator can do advanced mathematics, decompile programs and even understand DNA sequences (note: we don't even understand all of DNA). Also, consider that not all programs are writable in the same language. Compilers turn specific languages into specific binary. They can be the same, but they usually have different styles based around the features they use under the hood. Trust me, decompiling would not be trivial.

Now, take your universal translator. Let's assume it can hear and parse a sentence and translate it to your language. A general idea behind languages is that all of them have words and that words are pretty much atomic. It wouldn't make sense to have a language where you cycle between every word and say one syllable in a loop.

In that world the sentence: "An ex-am-ple sen-tence" would be said as: "an ex sen am tence ple". Needless to say, it would be gibberish. Words are atomic. They don't get mixed. Encryption is all about the sub-atomic manipulation. Break the words apart. Mix up the letters. Don't mix the meanings of the symbols of the words. Manipulate the expression of the words, which is where your translator would inevitably fail without a serious upgrade beyond language skills.

Even if your universal translator needs no context, it's a much different problem to solve encryption then it is to translate a language. We can argue that two languages both have a way of expressing "blue". However, encryption distorts this. The phrase "a blue bird" is no longer separable. You cannot look at just "blue". Do this on a large enough scale and you propose a "language" where every sentence is a particular symbol. At that point, expect processors to burn up. Plus, it is expected that languages be spoken in some way. Therefore, the translator learns from hearing, not reading. Anything, not audio-visual is nonsense to it. Converting the written language can be handled differently, and we can assume certain rules. If it fails... well that's just a limitation of the theory of languages and what we expect a language to be, not the device.

to sum it all up:

Unless you just desire a universal computer calculus solver/DNA parser/assembly code decompiler/language translator... there is nothing that says it must be this.

In fact, go over to mathematics and ask about mappings from one set to another AKA functions. Your universal mapper (rather than translator) goes from merely universally being capable of determining the one to one mapping of thoughts and ideas (aka words) to being capable of determining the one to one mapping of any data set to any data set. In other words, I feed your thing an sampling of a function at different points... it gives me back an exact expression of that function. Good luck dealing with unclosed forms.

Universal Translators as they are depicted in fiction are not something we can explain with science.* To explain them we need pseudo-science or magic.

Pseudo-science and magic are both capable of breaking any encryption the author wants them to break.

*There may be a few rare stories involving somewhat realistic translators where actual in-depth study of a new language and associated culture is required before the translator can partially translate. However, the common form of universal translators used in fiction only needs to pick up a few sentences of a language before they can translate the entire works of Shakespeare, which is magic.

Depends on the encryption, depends on the capabilities the author has chosen to give the translation device.

Encryption covers a broad range of approaches. From a purely textual standpoint, simple forms of encryption like substitution ciphers will not be any more difficult to translate than an unknown but not yet translated text. But modern encryption that outputs ciphertext that is seemingly indistinguishable from random noise will probably be on the more difficult end of things to crack.

How generalized and clever is this translator? Does it translate between known languages? Can it take a previously unknown language and derive meaning from whatever is being communicated? Can it translate concepts that don't exist in one language from another? Can it detect things like irony, body language and other contextual cues to meaning? What if the contextual cues are completely different between species? Does the translation device understand meaning derived from cultural context? How about meaning derived from personal experiences? A machine smart/magic enough to quickly solve such problems without human assistance might be smart enough to do anything.

Hypothetical example: A human ship encounters an intelligent aquatic species that communicates through bioluminescence and tentacle gestures. The meaning varies depending upon the salinity and temperature of the surrounding water and the pheremones being emitted by the participants in the conversation. The alien ship is transmitting a video/audio/olfactory signal to the human ship. It is a packetized protocol of alien design, communicated over 25 frequencies in the terahertz range. Their number system is base 11 and they can't see in our visual spectrum. How long does it take the universal translator to figure out what is being sent, figure out what it means and then communicate the captain's greetings? Bonus challenge: the aliens wish to serve man.

• Serve man, how? On a plate or with a plate? – Sensii Miller Nov 22 '16 at 22:38
• My point was that language can intentionally communicate ambiguity. How do you safely translate that to the language of a dissimilar species? – Jim W Nov 23 '16 at 14:50
• I understand. I was making a joke based on an old scifi movie...the line from the movie..."To Serve Man...it's a cookbook!" – Sensii Miller Nov 23 '16 at 19:32
• actually that's from "The Silver Chair" by CS Lewis, when Jill, Eustace, and Puddleglum visit the giants' castle at Harfang. – Yvonne Aburrow Nov 24 '16 at 11:48

Nope.

A lot of details are missing, but I think it's safe to assume your "Universal Translator" learns meaning from sample texts. With most encryption, every piece of text uses a 'key', which makes it indistinguishable from random gibberish without the original key.

A Caesar-cipher or similar means of encryption simply don't provide enough randomness for your Universal Translator to have difficulty with though, so your Universal Translator would circumvent it as a means of securing information. An Enigma-machine's ciphering method does have some means of protection which supply a sufficient amount of entropy to protect against a Universal Translator though.

No

Given this ciphertext

9686961375462206147714092225435588290575999112457431987469512093
0816298225145708356931476622883989628013391990551829945157815154


Each of the following lines are equally valid decryptions using one-time pads invented in 1882, a hundred and thirty four years ago. Long before the first digital computer was built.

The enemy will attack at dawn tomorrow.
The enemy will retreat at midday today.
Coffee, Bread, Sugar, Card for Penelope

The Magic Words are Squeamish Ossifrage