Welcome Guest, Not a member yet? Register   Sign In
Encryption / Description Alphanumeric 16 digits
#5

[eluser]WanWizard[/eluser]
Isn't it easier to genarate a hash, and store the rest in the database? Like p.e. the search option on this forum does?

Anyway, you can't limit the result of the encryption to a fixed length string, it is always going to depend on the input length.

A hash always has a fixed length. You could even decide to use only the first 16 characters of a hash, but than you will have to do some collision detection.

Otherwise, just use the encrypt library's encode/decode methods (see the docs).


Messages In This Thread
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 02:13 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 03:05 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 03:15 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 03:26 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 03:43 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 03:44 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 03:47 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 03:58 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 04:14 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 04:28 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 04:30 AM
Encryption / Description Alphanumeric 16 digits - by El Forum - 06-15-2010, 04:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB