LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-16-2008, 12:23 PM   #1
hectorDUQUE
Member
 
Registered: Jan 2007
Posts: 121

Rep: Reputation: 15
storing crypto


hi guys,

as you know, there is a problem when storing ciphers to disk or when send it thru the network ... problem is that ciphers are random formed at the bits level, and any character could be formed, for example a CR, LF or a protocol character. When this happens, a register or message could be unexpectedly truncated. In order to deal with this, there are proceses to transform hexa numbers to characters, for example the 0xF to "F", and so on.

i have two questions:

1. is there a such kind of process to store those ciphers into a database like mysql ? which one ??
what i usually do is to write my own conversion process, but i wonder if there is a standard one for mysql ???... do i have to format a special type of field ????

2. this is specially true in crypto processes based in bits permutations, such as DES algorithm. I wonder if it also true for prime-big-numbers based algorithms, such as RSA or AES ???



cheers,

hector
 
Old 07-16-2008, 11:19 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, cipher is the method. I think you mean the enciphered text, in which case (for gpg) its the --armor option:
http://www.glump.net/dokuwiki/gpg/gpg_intro ; see '3.4 Publishing Your Public Key'
 
Old 07-17-2008, 11:18 AM   #3
hectorDUQUE
Member
 
Registered: Jan 2007
Posts: 121

Original Poster
Rep: Reputation: 15
yes, chris, tah is the problem but i need a solution for linux / java / bouncy castle :-(
does any one of you knows an equivalent solution ?

cheers,
hector
 
Old 07-18-2008, 04:06 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
So what is the prob? gpg runs on Linux. I'd expect you can call it from Java. You then save the output into eg a MySQL varchar col, depending on length. Here's the manual for MySQL 5.0 string col types: http://dev.mysql.com/doc/refman/5.0/...ing-types.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crypto++ erat123 Programming 4 01-21-2007 01:51 AM
Crypto Formula rubadub Programming 2 09-06-2006 10:16 AM
linux crypto api saajii Programming 3 08-31-2004 09:16 PM
Crypto problems Slacker0815 Linux - Security 10 02-09-2004 12:24 AM
Crypto Challenge jeremy Linux - Security 2 11-18-2003 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration