jordanwb Posted December 22, 2008 Share Posted December 22, 2008 I need to store SIN numbers in a database. I've found a couple of 2-way algorhythms but they don't return hexadecimal strings. Anyone know of any good algorhythms? Link to comment https://forums.phpfreaks.com/topic/138033-solved-2-way-encryption-algorhythm/ Share on other sites More sharing options...
Mark Baker Posted December 22, 2008 Share Posted December 22, 2008 I need to store SIN numbers in a database. I've found a couple of 2-way algorhythms but they don't return hexadecimal strings. Anyone know of any good algorhythms? Plenty, and they'll all return binary data. You'll need to convert it from binary to text if you want to store it in a VARCHAR2 in a database, or use a CLOB to store it as a binary. The base64_encode() function can be used to convert binary to text Link to comment https://forums.phpfreaks.com/topic/138033-solved-2-way-encryption-algorhythm/#findComment-721422 Share on other sites More sharing options...
jordanwb Posted December 22, 2008 Author Share Posted December 22, 2008 Good idea. Link to comment https://forums.phpfreaks.com/topic/138033-solved-2-way-encryption-algorhythm/#findComment-721435 Share on other sites More sharing options...
jordanwb Posted December 22, 2008 Author Share Posted December 22, 2008 Do you know if base64_encode will ever return quotes? It seems it does not. Link to comment https://forums.phpfreaks.com/topic/138033-solved-2-way-encryption-algorhythm/#findComment-721458 Share on other sites More sharing options...
Mark Baker Posted December 22, 2008 Share Posted December 22, 2008 Do you know if base64_encode will ever return quotes? The only characters used for base64 encoding are: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ Link to comment https://forums.phpfreaks.com/topic/138033-solved-2-way-encryption-algorhythm/#findComment-721492 Share on other sites More sharing options...
jordanwb Posted December 22, 2008 Author Share Posted December 22, 2008 The only characters used for base64 encoding are: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ Cool, thanks. Link to comment https://forums.phpfreaks.com/topic/138033-solved-2-way-encryption-algorhythm/#findComment-721651 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.