Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   BlowFish decrypting (http://www.velocityreviews.com/forums/t449549-blowfish-decrypting.html)

Claus Wanner 11-03-2005 08:00 PM

BlowFish decrypting
 

Hi NewsGroup,

some days ago i've started to coding an decryting function to decyrpt
a Passwort.

The password is BlowFish encrypted and than Base64 encodet.
An other application send the password to me in this form.

Note: A java-application encrypt and encode the password and send it to
my application about an HTTP-Request (intranet, SSL).

Now i want de decode and decrypt the passwort to logon at a backend-system.
My Problem is, that the decoded and decrypted password, doesn't end
with '\0' and so i have some unmeant character in the passwort.
I use the BlowFish-Implementation from: http://www.codeas.com/solutions.php

Example:
Note: the passwort must have between 5 and 8 characters AND i don't know
the passwortlength in normal-/ASCII-Form.

Passwort = "start00"
Encrypted + Encodet = "HJAHRJhdj&878fm=" (for example only!)
Decodet + Decrypted = "start00#"

The # is anywise too much!

I'm very thanksful for any hit!

cu
Claus

Victor Bazarov 11-03-2005 08:13 PM

Re: BlowFish decrypting
 
On Thu, 03 Nov 2005 21:00:34 +0100, Claus Wanner wrote:
> Hi NewsGroup,
>
> some days ago i've started to coding an decryting function to decyrpt
> a Passwort.
> [...explanation snipped...]


I think this is covered in the FAQ (believe it or not), namely in
#5.8. Find FAQ here: http://www.parashift.com/c++-faq-lite/

V

Ufit 11-04-2005 01:19 PM

Re: BlowFish decrypting
 

"Claus Wanner" <license@gmx.de> wrote in message news:dkdqci$t7q$02$1@news.t-online.com...
>
>
>
> Passwort = "start00"
> Encrypted + Encodet = "HJAHRJhdj&878fm=" (for example only!)
> Decodet + Decrypted = "start00#"
>
> The # is anywise too much!
>
> I'm very thanksful for any hit!
>
> cu
> Claus


Every coded password should end with <CRLF>
that's when you decode it - look for those 2 chars at the string end.
If you don't set the password try to find an ending sequence
that repeats itself contantly in the string.
I came across 2 ways - (encoded pass) + (raw)<crlf> and (encoded pass+<crlf>)
Maybe that helps.

UF


All times are GMT. The time now is 11:19 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57