Welcome Guest, Not a member yet? Register   Sign In
Encryption Library
#8

[eluser]Abel A.[/eluser]
You can also remove the = sign and add it afterwards. The only problem is that base64 sometimes adds == (2 signs). If your raw data is a fix length (like a hash, md5, sha256, etc.), then you can predict how many = signs your base64 string will have. The extra = sign serves as padding, that's why it's added.

Ex:
a string of 20 character will always have one = sign
a string of 100 character will always have two = signs
a string of 1000 character will always have one = sign

You get the point. Note, I didn't test the above string lengths, you would have to do that. I image it won't be too hard.


Messages In This Thread
Encryption Library - by El Forum - 06-13-2012, 07:31 AM
Encryption Library - by El Forum - 06-13-2012, 08:25 AM
Encryption Library - by El Forum - 06-13-2012, 08:29 AM
Encryption Library - by El Forum - 06-13-2012, 09:07 AM
Encryption Library - by El Forum - 06-13-2012, 10:05 AM
Encryption Library - by El Forum - 06-13-2012, 11:17 AM
Encryption Library - by El Forum - 06-13-2012, 04:25 PM
Encryption Library - by El Forum - 06-13-2012, 04:29 PM
Encryption Library - by El Forum - 06-13-2012, 11:19 PM
Encryption Library - by El Forum - 06-14-2012, 12:04 PM
Encryption Library - by El Forum - 06-14-2012, 01:17 PM
Encryption Library - by El Forum - 06-14-2012, 03:01 PM
Encryption Library - by El Forum - 06-14-2012, 03:20 PM
Encryption Library - by El Forum - 06-14-2012, 03:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB