search for: plain_text

Displaying 12 results from an estimated 12 matches for "plain_text".

2008 Dec 13
2
Need Help in converting php encryption decryption code to ruby on rails
...39;s length. #** 0 <= $iv_len <= 512 #** #************************************************/ # function get_rnd_iv( $iv_len ) { $iv = ''''; while ( $iv_len-- > 0 ) { $iv .= chr( mt_rand( ) & 0xff ); } return $iv; } function md5_encrypt( $plain_text, $password, $iv_len = 16 ) { $plain_text .= "\x13"; $n = strlen( $plain_text ); if ( $n % 16 ) { $plain_text .= str_repeat( "\0", 16 - ( $n % 16 ) ); } $i = 0; $enc_text = get_rnd_iv( $iv_len ); $iv = substr( $password ^ $enc_text, 0, 51...
2010 Nov 04
1
Calling a method directly from a test => no method error
...ecret_answer = "Volvo" assert @user.save @answer = User.connection.select_all( "select secret_answer from users where id = 1" ) cipher_text = @answer.first[''secret_answer''] opts = Encryptor::ActiveRecord::Encryptor.default_options @plain_text = decrypt(cipher_text, User.encryption_key, opts) assert_equal @plain_text, "Volvo" end end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3Mboc...
2016 Dec 15
0
How to get the value for casting in a bitcast instruction more efficiently?
...cient way to get the *value for casting* directly from a bitcast instruction? > > bitcast format :<result> = bitcast <ty> <*value*> to <ty2> > > For example, if i have > > MemAddr > ... > 0x3d61238 %key = alloca [16 x i8], align 16 > 0x3d612a8 %plain_text = alloca [64 x i8], align 16 > 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* > ... > > The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? > > Thanks very much! > > Best >...
2016 Dec 15
1
How to get the value for casting in a bitcast instruction more efficiently?
Hi everyone, This is a simple question but is there an efficient way to get the value directly from a bitcast instruction? <result> = bitcast <ty> <value> to <ty2> For example, if i have MemAddr ... 0x3d61238 %key = alloca [16 x i8], align 16 0x3d612a8 %plain_text = alloca [64 x i8], align 16 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* ... The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? Thanks very much! Best Shen -------------- next part ----------...
2016 Dec 15
2
How to get the value for casting in a bitcast instruction more efficiently?
...is a simple question but is there an efficient way to get the *value for casting* directly from a bitcast instruction? bitcast format :<result> = bitcast <ty> <*value*> to <ty2> For example, if i have MemAddr ... 0x3d61238 %key = alloca [16 x i8], align 16 0x3d612a8 %plain_text = alloca [64 x i8], align 16 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* ... The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? Thanks very much! Best -------------- next part -------------- An...
2016 Dec 15
4
How to get the value for casting in a bitcast instruction more efficiently?
...ing* directly from a bitcast instruction? >> >> bitcast format :<result> = bitcast <ty> <*value*> to <ty2> >> >> For example, if i have >> >> MemAddr >> ... >> 0x3d61238 %key = alloca [16 x i8], align 16 >> 0x3d612a8 %plain_text = alloca [64 x i8], align 16 >> 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* >> ... >> >> The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? >> >> Thanks very mu...
2016 Dec 15
0
How to get the value for casting in a bitcast instruction more efficiently?
...tion? >>> >>> bitcast format :<result> = bitcast <ty> <*value*> to <ty2> >>> >>> For example, if i have >>> >>> MemAddr >>> ... >>> 0x3d61238 %key = alloca [16 x i8], align 16 >>> 0x3d612a8 %plain_text = alloca [64 x i8], align 16 >>> 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* >>> ... >>> >>> The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? >>> &gt...
2016 Dec 15
0
How to get the value for casting in a bitcast instruction more efficiently?
...cient way to get the value for casting directly from a bitcast instruction? > > bitcast format :<result> = bitcast <ty> <value> to <ty2> > > For example, if i have > > MemAddr > ... > 0x3d61238 %key = alloca [16 x i8], align 16 > 0x3d612a8 %plain_text = alloca [64 x i8], align 16 > 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* > ... > The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? > Thanks very much! > > Best > > __...
2012 Jul 07
18
Problem processing text file after uploading
I''ve got a web-app currently partially working. The user uploads a .txt, .docx or .doc file to the server. Currently the model handles those files, saves some metadata (the extention and orig filename) then saves the file to the hard drive. Next it converts the doc and docx files to plain text and saves the output to a txt file. My problem is I want to copy the plain text contents of
2007 Dec 05
0
Encryption using blowfish
...ng using rails, i get a different encrypted key. Also, blow fish can take only 56 byte key as its input, so i manipulated the key as how its done in php and packed it to a hex. however am not sure how i can pass the iv blowfish = Crypt::Blowfish.new(key) encrypted_string = blowfish.encrypt_block(plain_text) any inputs? Thanks Ramya --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubs...
2012 Apr 29
2
Xy plot help
Dear R group, Tried to turn off the html in yahoo.  So far  not successful.  Apologies! I tried to get xyplot shrink fit for my mixed model.  But, the mixed model line is not seen in the graph. I would like to know if there is anything wrong with my code. Thanks, A.K. (fm1 <- lmer(Response3 ~1+ Wavelength*Start_Resp*time + (1|resid) + (1+time|Subject_BDat), family=binomial, data=Behavdat,
2004 Jun 10
2
bleah
...t I mostly apologize. I'm a little bent here myself. It just that I didn't plan on having to set up sniffit to track my IMAP traffic in order to verify that things were actually working securely. I'm going to plug along and do it myself and probably get something to work. I have plain_text authentication working now, but was really hoping to actually get something secure. At this point I really don't expect an answer, but do hope that after 1.0 is released there will be time available to get some documentation in order. IMHO the level of documentation that is available on a...