473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Nov 3 '05 #1
2 2923
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
Nov 3 '05 #2

"Claus Wanner" <li*****@gmx.de> wrote in message news:dk*************@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
Nov 4 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BKDotCom | last post by:
I'm writing an app that will use blowfish encryption.. PHP's mcrypt will be used if available. if not, I'll use PHPmyadmin's blowfish.php library. The problem is I can't figure out what...
2
by: Hal Vaughan | last post by:
I have no background in encryption, so I'm working with samples I've found in various places and patching them together. I know Blowfish can use a 56 byte key. The version of this program in Perl...
0
by: Peter | last post by:
A while back I saw the posting for this blowfish application. I was wondering if anyone knows if this implementation is over 448 bits? http://www.todd.acheson.com/Blowfish.NET.zip
3
by: Iain | last post by:
Hi I need Blowfish encyption (freeware hopefully) for a c# project, any ideas where to start? TIA Iain
1
by: Vipul Kulshrestha | last post by:
Hello Friends, I need to an encryption of passpword and store it in a file. I am looking for a code in C. I m having a code in C for Blowfish encryption but it takes long values as input . But I...
2
by: Derrick | last post by:
Has anyone been able to get blowfish decryption working from C#, in 1.1? I found sourcecode for 2.0, but there is enough 2.0 specific code in there that I'm trying to find a 1.1 library. ...
4
by: Fritjolf | last post by:
Hi. I've got a strange problem... I've made a simple program to test encryption/decryption. I use Rijndael encryption and here are the most important properties. RijndaelManaged cipher =...
0
by: Damon Getsman | last post by:
I'm working on a utility that needs to be able to generate /etc/shadow suitable hashes on an OpenSuSE 10.3 system. All of the shadowed hashes are blowfish, I believe, from seeing the 'magic'...
2
by: Demosthenes | last post by:
Does anyone have a simple implementation of Blowfish encryption ? I have gone to freevbcode.com and it wants me to download two installers that install a "chillkat" framework and so on. I really...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.