[#407177] Downloading a CSV using URI - mechanize — Rochit Sen <lists@...>

Hi All,

13 messages 2013/05/06

[#407178] %tempdir% location and folder clean up? — "Abinash Y." <lists@...>

Hi Guys,

12 messages 2013/05/06

[#407187] Gem Help - Newbie Question — Michael Tepfer <lists@...>

Hi,

17 messages 2013/05/07

[#407234] Problem with FileUtils move command. — Peter Bailey <lists@...>

Hello,

25 messages 2013/05/08
[#407235] Re: Problem with FileUtils move command. — Joel Pearson <lists@...> 2013/05/08

"no implicit conversion of nil into String" means you're probably

[#407236] Re: Problem with FileUtils move command. — Peter Bailey <lists@...> 2013/05/08

Joel Pearson wrote in post #1108209:

[#407238] Re: Problem with FileUtils move command. — Chris Hulan <chris.hulan@...> 2013/05/08

how is the script invoked?

[#407239] Re: Problem with FileUtils move command. — Peter Bailey <lists@...> 2013/05/08

Chris Hulan wrote in post #1108213:

[#407242] Re: Problem with FileUtils move command. — Daniel Stephens <danny.a.stephens@...> 2013/05/08

can you post some of the script?

[#407246] Re: Problem with FileUtils move command. — Love U Ruby <lists@...> 2013/05/08

Daniel Stephens wrote in post #1108224:

[#407250] Re: Problem with FileUtils move command. — Daniel Stephens <danny.a.stephens@...> 2013/05/08

What do you get if you puts "ARGV == #{ARGV[0]}" ?

[#407251] Re: Problem with FileUtils move command. — Peter Bailey <lists@...> 2013/05/08

Daniel Stephens wrote in post #1108238:

[#407252] Re: Problem with FileUtils move command. — Daniel Stephens <danny.a.stephens@...> 2013/05/08

So it's like the other guys mentioned, there appears to be no file(or

[#407255] Re: Problem with FileUtils move command. — Peter Bailey <lists@...> 2013/05/08

Daniel Stephens wrote in post #1108240:

[#407257] Re: Problem with FileUtils move command. — Hassan Schroeder <hassan.schroeder@...> 2013/05/08

On Wed, May 8, 2013 at 6:54 AM, Peter Bailey <lists@ruby-forum.com> wrote:

[#407261] Re: Problem with FileUtils move command. — Peter Bailey <lists@...> 2013/05/08

Hassan Schroeder wrote in post #1108253:

[#407263] Re: Problem with FileUtils move command. — Hassan Schroeder <hassan.schroeder@...> 2013/05/08

On Wed, May 8, 2013 at 8:22 AM, Peter Bailey <lists@ruby-forum.com> wrote:

[#407265] Re: Problem with FileUtils move command. — Peter Bailey <lists@...> 2013/05/08

Hassan Schroeder wrote in post #1108265:

[#407258] Connect to a switch with SSH — "Rudá G." <lists@...>

I need connect to a Cisco Switch with SSH and Ruby. The main problem is

17 messages 2013/05/08

[#407298] Trucking All Http Request from a web page — Ja Tse <lists@...>

Hi,

10 messages 2013/05/09

[#407383] Enum#each issue — Love U Ruby <lists@...>

I am not able to understand why I am getting the error for the method

26 messages 2013/05/13

[#407464] Is it 'safe' to upgrade to ruby 2.0 by now? — Panagiotis Atmatzidis <atma@...>

Hello,

11 messages 2013/05/16

[#407471] Could you give me some Website for Learning Ruby — haxuan lac <lists@...>

I'm learning Ruby and I search some Website for learning Ruby

10 messages 2013/05/16

[#407517] Ruby Programming Practice — "buzz k." <lists@...>

Hey guys have been learning the basics of ruby and practicing some

30 messages 2013/05/19
[#407725] Re: Ruby Programming Practice — "buzz k." <lists@...> 2013/05/29

@Chad Perrin

[#407726] Re: Ruby Programming Practice — Stu <stu@...> 2013/05/29

On Wed, May 29, 2013 at 2:37 AM, buzz k. <lists@ruby-forum.com> wrote:

[#407740] Re: Ruby Programming Practice — Chad Perrin <code@...> 2013/05/29

On Wed, May 29, 2013 at 05:26:44PM +0900, Stu wrote:

[#407742] Re: Ruby Programming Practice — Brandon Weaver <keystonelemur@...> 2013/05/29

Skip FreeBSD and put armored plating on that bike by going OpenBSD.

[#407743] Re: Ruby Programming Practice — Chad Perrin <code@...> 2013/05/29

On Thu, May 30, 2013 at 02:54:51AM +0900, Brandon Weaver wrote:

[#407523] new, with an idea, and not sure what to learn next — Wendy Randquist <lists@...>

Hi. I've been going through the CodeAcademy courses for Ruby over the

13 messages 2013/05/19

[#407527] How to run shoes built via gem — Ruby Student <ruby.student@...>

This is perhaps a silly question.

14 messages 2013/05/19

[#407565] RubyDNS - asynchronous DNS client and server for Ruby. — Samuel Williams <space.ship.traveller@...>

Hi,

15 messages 2013/05/21
[#407567] Re: [ANN] RubyDNS - asynchronous DNS client and server for Ruby. — botp <botpena@...> 2013/05/21

On Tue, May 21, 2013 at 9:05 PM, Samuel Williams <

[#407585] Re: [ANN] RubyDNS - asynchronous DNS client and server for Ruby. — Samuel Williams <space.ship.traveller@...> 2013/05/21

Hi botp, you can create any configuration of DNS you like. RubyDNS doesn't

[#407586] Re: [ANN] RubyDNS - asynchronous DNS client and server for Ruby. — botp <botpena@...> 2013/05/22

On Wed, May 22, 2013 at 7:02 AM, Samuel Williams <

[#407587] Re: [ANN] RubyDNS - asynchronous DNS client and server for Ruby. — Samuel Williams <space.ship.traveller@...> 2013/05/22

Hi, you can use geo-ip for finding the location, geographically speaking.

[#407621] Regular expression to find a break in a pattern — Joel Pearson <lists@...>

I have a large file which lots of gibberish in and I'm trying to find

10 messages 2013/05/23

[#407639] On Green Shoes, do we have a broken arrow? — Ruby Student <ruby.student@...>

Team,

12 messages 2013/05/24

[#407715] AAARRRRGH! s="#$" => SyntaxError: compile error — Tadeusz Bochan <lists@...>

Hi.

13 messages 2013/05/28

[#407738] sending a gmail using ruby — David Munyaka <lists@...>

please help analyzing this code and please give me some recommendations.

26 messages 2013/05/29

[#407763] I can't unsubscribe, please help — Matthew Westerberg <matthew@...>

Hi,

11 messages 2013/05/29

[#407820] Eloquent Ruby Kaprekar's Number — Alphonse 23 <lists@...>

Which way is the eloquent ruby way to write this algorithm?

18 messages 2013/05/30

Re: why first 16 bytes are wrong with ruby openssl aes 128 cbc ?

From: "David D." <lists@...>
Date: 2013-05-23 22:43:10 UTC
List: ruby-talk #407631
I'm sorry for my late. Thank Ryan.

I'm sorry but auth_tag doesn't exist for ruby 1.8.7. For be clear a
exemple this : http://pastebin.com/nFgfyXem who is an encrypted file
encode to base64.
didier@laptop-E520:/tmp$ pbget "http://pastebin.com/p08QTXru" | base64
-d > file_enc
didier@laptop-E520:/tmp$ md5sum file_enc
30b8f5e7d700c108cd9815c00ca1de2d  file_enc

pbget is this http://pastebin.com/fXsuA9bn a bash program for pastebin.

decrypte the file :

didier@laptop-E520:/tmp/ruby_forum$ openssl aes-128-cbc -d -in file_enc
-out pic_bash.jpg -nosalt -iv 00000000000000000000000000000001 -K
7ffb8032dff33aef9aa92e9ac96239d3

ruby code :

require 'openssl'

c = OpenSSL::Cipher::Cipher.new("aes-128-cbc")
c.decrypt
c.key = "\177\373\2002\337\363:\357\232\251.\232\311b9\323"
c.iv = "00000000000000000000000000000001"
data = File.read("/tmp/file_enc")
d = c.update(data)
d << c.final
file = File.open("/tmp/file_decrypt_ruby", "w")
file.write(d)
file.close

didier@laptop-E520:/tmp/ruby_forum$ hd pic_bash.jpg | head
00000000  ff d8 ff e1 22 d2 45 78  69 66 00 00 4d 4d 00 2a
|....".Exif..MM.*|
00000010  00 00 00 08 00 0c 01 1a  00 05 00 00 00 01 00 00
|................|
00000020  01 46 01 1b 00 05 00 00  00 01 00 00 01 4e 01 28
|.F...........N.(|
00000030  00 03 00 00 00 01 00 02  00 00 02 13 00 03 00 00
|................|
00000040  00 01 00 01 00 00 87 69  00 04 00 00 00 01 00 00
|.......i........|
00000050  00 9e 01 3b 00 02 00 00  00 0d 00 00 01 56 01 0e
|...;.........V..|
00000060  00 02 00 00 00 13 00 00  01 64 01 32 00 02 00 00
|.........d.2....|
00000070  00 14 00 00 01 78 01 0f  00 02 00 00 00 06 00 00
|.....x..........|
00000080  01 8c 01 10 00 02 00 00  00 08 00 00 01 92 01 31
|...............1|
00000090  00 02 00 00 00 08 00 00  01 9a 01 12 00 03 00 00
|................|

didier@laptop-E520:/tmp/ruby_forum$ hd file_decrypt_ruby | head
00000000  cf e8 cf d1 12 e2 75 48  59 56 30 30 7d 7d 30 1b
|......uHYV00}}0.|
00000010  00 00 00 08 00 0c 01 1a  00 05 00 00 00 01 00 00
|................|
00000020  01 46 01 1b 00 05 00 00  00 01 00 00 01 4e 01 28
|.F...........N.(|
00000030  00 03 00 00 00 01 00 02  00 00 02 13 00 03 00 00
|................|
00000040  00 01 00 01 00 00 87 69  00 04 00 00 00 01 00 00
|.......i........|
00000050  00 9e 01 3b 00 02 00 00  00 0d 00 00 01 56 01 0e
|...;.........V..|
00000060  00 02 00 00 00 13 00 00  01 64 01 32 00 02 00 00
|.........d.2....|
00000070  00 14 00 00 01 78 01 0f  00 02 00 00 00 06 00 00
|.....x..........|
00000080  01 8c 01 10 00 02 00 00  00 08 00 00 01 92 01 31
|...............1|
00000090  00 02 00 00 00 08 00 00  01 9a 01 12 00 03 00 00
|................|

This is independent of key. Thank you.

-- 
Posted via http://www.ruby-forum.com/.

In This Thread