| Welcome to Crypto. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Base hash; Another basic cipher | |
|---|---|
| Topic Started: Oct 1 2009, 12:31 PM (76 Views) | |
| dabombguyman | Oct 1 2009, 12:31 PM Post #1 |
|
Just registered
![]() ![]() ![]()
|
I was thinking about base conversion and how hex has letters in it and realized I could use every character on a keyboard and even special characters. Base 64 or 92 would be the start Base and any other base is the end. The key would be the alphabet, instead of "0123456789ABCD. . . " It could be "A8hf4BGj7kr9. . ." Making 64! or 92! possible keys. But you also have to guess the start and end bases making it 64! + 65! + 66! . . . N! number of key combinations. The best part is that one letter off in the alphabet and it destroys a little over half of the plain and cipher texts. Although if your message is short then you wont likely use that one letter they get wrong making it easier to find the right key but the fact that your message is short makes it more difficult to know when you've found the right key. The opposite when your message size increases, it's easy to know when you got the right key but harder to get there because it's less likely that you'll get it. When I was programing a javascript version of this I tested it and found that it can't count big numbers, do math functions on them and keep them out of scientific notation (drops alot of the message), If anyone can help me with this I would appreciate it. It is likely that a cipher so simple has huge holes in it, so let me know what you find.
|
| Q3J5cHRvZ3JhcGh5IGlzIGFuIGFydCBmb3Jt | |
![]() |
|
| jdege | Oct 1 2009, 05:18 PM Post #2 |
|
Elite member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
In Java the int data type is restricted to 2^32. The double only represents approximate values. What you want is the java.math.BigInteger class. http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html |
| When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. | |
![]() |
|
| dabombguyman | Oct 2 2009, 12:03 AM Post #3 |
|
Just registered
![]() ![]() ![]()
|
Not sun java. Javascript like for websites. They're two different things. Here's my code.
and the html that goes with it.
Here is the site Click here.. Is it possible to port this code? Also, anyone know any ways to break this cipher? |
| Q3J5cHRvZ3JhcGh5IGlzIGFuIGFydCBmb3Jt | |
![]() |
|
| jdege | Oct 4 2009, 09:46 PM Post #4 |
|
Elite member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Is this working for you? Because when I encryt some text, then decrypt the result, I'm getting a bunch of numbers, not my original text. |
| When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. | |
![]() |
|
| dabombguyman | Oct 5 2009, 10:17 PM Post #5 |
|
Just registered
![]() ![]() ![]()
|
As I said, it doesn't work with big numbers because javascript has a limit on size. I'm wondering if there is a work around. Also, did you set the first base 64? |
| Q3J5cHRvZ3JhcGh5IGlzIGFuIGFydCBmb3Jt | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · General · Next Topic » |





![]](http://209.85.122.85/static/1/pip_r.png)



9:25 AM Nov 23