crypt 1.1.3 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,48 +1,63 @@
1
- --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
3
- specification_version: 1
1
+ --- !ruby/object:Gem::Specification
4
2
  name: crypt
5
- version: !ruby/object:Gem::Version
6
- version: 1.1.3
7
- date: 2006-08-05
8
- summary: "The Crypt library is a pure-ruby implementation of a number of popular
9
- encryption algorithms. Block cyphers currently include Blowfish, GOST, IDEA, and
10
- Rijndael (AES). Cypher Block Chaining (CBC) has been implemented. Twofish,
11
- Serpent, and CAST256 are planned for release soon."
12
- require_paths:
13
- - "."
14
- email: kernighan_rich@rubyforge.org
15
- homepage: http://crypt.rubyforge.org/
16
- rubyforge_project: crypt
17
- description:
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.1
5
+ platform: ruby
6
+ authors:
7
+ - Richard Kernahan
18
8
  autorequire:
19
- default_executable:
20
9
  bindir: bin
21
- has_rdoc: false
22
- required_ruby_version: !ruby/object:Gem::Version::Requirement
23
- requirements:
24
- -
25
- - ">"
26
- - !ruby/object:Gem::Version
27
- version: 0.0.0
28
- version:
29
- platform: ruby
30
- authors:
31
- - Richard Kernahan
32
- files:
33
- - crypt/blowfish-tables.rb
34
- - crypt/blowfish.rb
35
- - crypt/cbc.rb
36
- - crypt/gost.rb
37
- - crypt/idea.rb
38
- - crypt/noise.rb
39
- - crypt/rijndael-tables.rb
40
- - crypt/rijndael.rb
41
- - crypt/stringxor.rb
42
- test_files: []
43
- rdoc_options: []
44
- extra_rdoc_files: []
10
+ cert_chain: []
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: The Crypt library is a pure-ruby implementation of a number of popular
14
+ encryption algorithms. Block cyphers currently include Blowfish, GOST, IDEA, and
15
+ Rijndael (AES). Cypher Block Chaining (CBC) has been implemented, and unicode is
16
+ supported.
17
+ email: recdev@finalstep.com.au
45
18
  executables: []
46
19
  extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - CREDITS
23
+ - LICENSE
24
+ - README
25
+ - lib/crypt/blowfish-tables.rb
26
+ - lib/crypt/blowfish.rb
27
+ - lib/crypt/cbc.rb
28
+ - lib/crypt/gost.rb
29
+ - lib/crypt/idea.rb
30
+ - lib/crypt/noise.rb
31
+ - lib/crypt/rijndael-tables.rb
32
+ - lib/crypt/rijndael.rb
33
+ - lib/crypt/stringxor.rb
34
+ - specs/blowfish.rb
35
+ - specs/gost.rb
36
+ - specs/idea.rb
37
+ - specs/rijndael.rb
38
+ homepage: http://crypt.finalstep.com.au/
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
47
56
  requirements: []
48
- dependencies: []
57
+ rubyforge_project: crypt
58
+ rubygems_version: 2.4.5.1
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Pure-ruby cryptographic library including Blowfish, GOST, IDEA, and Rijndael
62
+ (AES).
63
+ test_files: []
data/crypt/stringxor.rb DELETED
@@ -1,27 +0,0 @@
1
- # stringxor.rb Richard Kernahan <kernighan_rich@rubyforge.org>
2
-
3
- module Crypt
4
- module StringXor
5
-
6
-
7
- def ^(aString)
8
- a = self.unpack('C'*(self.length))
9
- b = aString.unpack('C'*(aString.length))
10
- if (b.length < a.length)
11
- (a.length - b.length).times { b << 0 }
12
- end
13
- xor = ""
14
- 0.upto(a.length-1) { |pos|
15
- x = a[pos] ^ b[pos]
16
- xor << x.chr()
17
- }
18
- return(xor)
19
- end
20
-
21
-
22
- end
23
- end
24
-
25
- class String
26
- include Crypt::StringXor
27
- end