Вопрос

i want to crypt some informations with bitwise operations.

For example two numbers with bitwise or: 8 and 1 to 9.

But how can i encrypt it it to get my root nombers?

greetz

Это было полезно?

Решение

You can use a bitwise xor to achieve this, it's known as a xor cipher.

Другие советы

OR is not reversible. XOR is reversible.

From all bitwise operations only XOR is reversible. Look for XOR-cipher, the easiest way to encrypt your data. In your case you still have to know at least one number from both to restore the second one! There is no way that you can restore both.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top